:root {
  --bg: linear-gradient(135deg, #f87008 0%, #b95624 100%);
  --card-bg: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.20);
  --text: #ffffff;
  --input-bg: rgba(255, 255, 255, 0.08);
  --accent: #e0e0e0;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(31, 38, 135, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  color: var(--text);
  padding: 2rem;
}

/* Icon fallbacks for Font Awesome */
.fas::before, .fa::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", Arial, sans-serif;
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* Fallback content for common icons */
.fa-lock::before { content: "🔒"; }
.fa-check::before { content: "✓"; }
.fa-spinner::before { content: "⟳"; }
.fa-microphone::before { content: "🎤"; }
.fa-robot::before { content: "🤖"; }
.fa-coins::before { content: "💰"; }
.fa-rectangle-ad::before { content: "📢"; }
.fa-window-maximize::before { content: "🪟"; }
.fa-cube::before { content: "📦"; }
.fa-info-circle::before { content: "ℹ"; }
.fa-check-circle::before { content: "✅"; }

/* Spinner animation */
.fa-spin {
    animation: fa-spin 2s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

header {
  background: linear-gradient(135deg, #f87008 0%, #b95624 100%);
  color: white;
  padding: 2rem 1rem;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.app-logo-placeholder {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.app-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
}

.app-info h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 600;
  color: white;
}

.app-description {
  margin: 0.5rem 0 0 0;
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 300;
}

.app-details {
  background: rgba(255,255,255,0.1);
  padding: 1.5rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  margin-bottom: 1rem;
}

.app-details p {
  margin: 0 0 1rem 0;
  line-height: 1.6;
  font-size: 1rem;
}

.features-highlight {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.feature-tag {
  background: rgba(255,255,255,0.2);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.1);
}

.feature-tag i {
  font-size: 0.8rem;
}

.dashboard-subtitle {
  background: rgba(255,255,255,0.05);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #fff;
}

.dashboard-subtitle p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .logo-section {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .app-info h1 {
    font-size: 2rem;
  }
  
  .features-highlight {
    justify-content: center;
  }
  
  .app-logo {
    width: 60px;
    height: 60px;
  }
}

header h1 {
  font-size: 2rem;
  font-weight: 600;
}

header p {
  font-size: .9rem;
  opacity: .75;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  transition: transform .25s;
}

.card:hover {
  transform: translateY(-4px);
}

/* Card header improvements */
.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.card-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
}

.card-header h3 {
  flex: 1;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

/* Form field improvements */
.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
  opacity: 0.9;
}

.field input[type="text"] {
  width: 100%;
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.field input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(224, 224, 224, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: .25rem;
  letter-spacing: .3px;
}

input[type="text"], select, input[type="password"] {
  width: 100%;
  padding: .6rem .8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-size: .9rem;
  transition: border .2s;
}

input[type="text"]:focus, select:focus, input[type="password"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(224, 224, 224, 0.2);
}

.btn-holder {
  margin-top: 2rem;
  text-align: center;
}

.btn {
  padding: .9rem 3rem;
  border: none;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .25);
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background .25s;
}

.btn:hover {
  background: rgba(255, 255, 255, .35);
}

footer {
  margin-top: 3rem;
  text-align: center;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

footer p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0.5rem 0;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

footer a:hover {
  opacity: 0.8;
}

.footer-divider {
  margin: 0 0.5rem;
  opacity: 0.5;
}

/* Lock Screen Styles */
.lock-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lock-modal {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.lock-modal h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.lock-modal h2 i {
  margin-right: 0.5rem;
  color: var(--accent);
}

.lock-actions {
  margin-top: 1.5rem;
}

.btn-confirm {
  background: rgba(255, 255, 255, 0.3);
  min-width: 200px;
}

.btn-confirm:hover {
  background: rgba(255, 255, 255, 0.4);
}

.password-field {
  margin-bottom: 1.5rem;
}

.error-message {
  color: #ff6b6b;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 1rem;
  display: none;
}

/* Switch styles */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #667eea;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Form styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1001;
    min-width: 250px;
    backdrop-filter: blur(10px);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #22c55e;
}

.notification.error {
    border-left: 4px solid #ef4444;
}

.notification.warning {
    border-left: 4px solid #f59e0b;
}

.notification.info {
    border-left: 4px solid #3b82f6;
}

.notification i {
    margin-right: 0.5rem;
    font-size: 1rem;
}
