* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Light Theme (Default) */
:root,
[data-theme="light"] {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary-color: #64748b;
  --secondary-light: #94a3b8;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --info-color: #3b82f6;
  --bg-color: #ffffff;
  --bg-light: #f8fafc;
  --bg-lighter: #f1f5f9;
  --text-color: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-border: #e2e8f0;
  --input-bg: #ffffff;
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-accent: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
  --gradient-bg: radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}

/* Dark Theme */
[data-theme="dark"] {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary-color: #1e293b;
  --secondary-light: #475569;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --info-color: #3b82f6;
  --bg-color: #0f172a;
  --bg-light: #1e293b;
  --bg-lighter: #334155;
  --text-color: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --card-bg: rgba(30, 41, 59, 0.6);
  --card-border: #334155;
  --input-bg: rgba(15, 23, 42, 0.5);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.3);
  --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.5);
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-accent: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
  --gradient-bg: radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-bg);
  pointer-events: none;
  z-index: -1;
}

.language-selector {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Theme Toggle Button */
.theme-toggle {
  padding: 10px 12px;
  border: 2px solid var(--border-color);
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.theme-toggle:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(99, 102, 241, 0.3);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle #themeIcon {
  transition: transform 0.3s ease;
  display: inline-block;
}

.lang-btn {
  padding: 10px 20px;
  border: 2px solid var(--border-color);
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-color);
}

.lang-btn:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(99, 102, 241, 0.3);
}

.lang-btn.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 16px -4px rgba(99, 102, 241, 0.5);
}

.screen {
  display: none;
  min-height: 100vh;
  padding: 40px 20px;
}

.screen.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  max-width: 800px;
  width: 100%;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  padding: 48px;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--card-border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

h1 {
  font-size: 2.75rem;
  text-align: center;
  margin-bottom: 16px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--text-color);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text-color);
  font-weight: 600;
}

p {
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 32px;
  font-size: 1.1rem;
}

.welcome-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Magic Link Styles */
.magic-link-container {
  max-width: 500px;
  margin: 40px auto;
  padding: 32px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.magic-link-container h3 {
  color: var(--primary-color);
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.magic-link-container > p {
  color: var(--secondary-color);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.notification {
  padding: 16px;
  border-radius: 8px;
  margin-top: 20px;
  animation: slideDown 0.3s ease-out;
}

.notification.success {
  background: #d1fae5;
  border: 1px solid #10b981;
  color: #065f46;
}

.notification.error {
  background: #fee2e2;
  border: 1px solid #ef4444;
  color: #991b1b;
}

.notification.info {
  background: #dbeafe;
  border: 1px solid #3b82f6;
  color: #1e40af;
}

.dev-link-container {
  margin-top: 24px;
  padding: 20px;
  background: #fef3c7;
  border: 2px dashed #f59e0b;
  border-radius: 8px;
  text-align: center;
}

.dev-warning {
  color: #92400e;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.dev-link-container p {
  color: #78350f;
  margin-bottom: 16px;
}

.dev-link-container .btn {
  margin-top: 8px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: 1px solid rgba(99, 102, 241, 0.5);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 30px -10px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: rgba(51, 65, 85, 0.8);
  color: white;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(71, 85, 105, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

.btn-danger {
  background: var(--error-color);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

.btn-link {
  background: transparent;
  color: var(--primary-color);
  padding: 12px 16px;
}

.btn-link:hover {
  background: var(--bg-color);
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--input-bg);
  color: var(--text-color);
  backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--bg-color);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}

.form-error {
  display: block;
  color: var(--error-color);
  font-size: 14px;
  margin-top: 4px;
}

.form-hint {
  display: block;
  color: var(--secondary-color);
  font-size: 13px;
  margin-top: 4px;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: var(--error-color);
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.alert-danger {
  background-color: #fee;
  border: 1px solid #fcc;
  color: #c33;
}

.alert-success {
  background-color: #efe;
  border: 1px solid #cfc;
  color: #3c3;
}

.alert-info {
  background-color: #eef;
  border: 1px solid #ccf;
  color: #33c;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: space-between;
}

.user-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.user-name {
  font-size: 1.2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.progress-summary {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 28px;
  border-radius: 16px;
  margin-bottom: 32px;
  border: 1px solid var(--card-border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.progress-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.stat {
  text-align: center;
  padding: 20px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--card-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(99, 102, 241, 0.3);
  border-color: var(--primary-color);
}

.stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--secondary-color);
}

.tests-container {
  margin-top: 32px;
}

.tests-list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.test-card {
  padding: 24px;
  border: 2px solid var(--border-color);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.test-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.test-card:hover {
  border-color: var(--primary-color);
  transform: translateX(8px);
  box-shadow: 0 12px 24px -8px rgba(99, 102, 241, 0.3);
  background: var(--bg-light);
}

.test-card:hover::before {
  opacity: 1;
}

.test-card.completed {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--success-color);
}

.test-card.completed::before {
  background: var(--success-color);
  opacity: 1;
}

.test-card.locked {
  opacity: 0.4;
  cursor: not-allowed;
}

.test-card-info {
  flex: 1;
}

.test-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.test-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--secondary-color);
}

.test-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-basic {
  background: #dbeafe;
  color: #1e40af;
}

.badge-intermediate {
  background: #fef3c7;
  color: #92400e;
}

.badge-advanced {
  background: #fee2e2;
  color: #991b1b;
}

.test-status {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.status-completed {
  background: var(--success-color);
  color: white;
}

.status-locked {
  background: var(--border-color);
  color: var(--secondary-color);
}

.test-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.test-info {
  font-size: 0.9rem;
  color: var(--secondary-color);
}

.separator {
  margin: 0 8px;
}

.test-instructions {
  background: #eff6ff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  border-left: 4px solid var(--primary-color);
}

.test-content {
  padding: 24px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 24px;
  min-height: 300px;
}

.bug-tracker {
  background: var(--bg-color);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
}

#bugsList {
  margin: 16px 0;
  min-height: 50px;
}

.bug-item {
  background: white;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  border-left: 4px solid var(--warning-color);
  transition: all 0.3s;
}

.bug-item.validated {
  border-left-color: var(--success-color);
  background: #f0fdf4;
}

.bug-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

.validation-icon {
  font-size: 16px;
  margin-left: 4px;
}

.bug-severity {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.severity-low {
  background: #dbeafe;
  color: #1e40af;
}

.severity-medium {
  background: #fef3c7;
  color: #92400e;
}

.severity-high {
  background: #fed7aa;
  color: #9a3412;
}

.severity-critical {
  background: #fee2e2;
  color: #991b1b;
}

.bug-description {
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.bug-confidence {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.confidence-bar-small {
  flex: 1;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.confidence-fill-small {
  height: 100%;
  background: linear-gradient(90deg, var(--success-color), var(--primary-color));
  border-radius: 3px;
  transition: width 0.5s ease;
}

.confidence-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--secondary-color);
  white-space: nowrap;
}

.bug-validation-msg {
  margin-top: 8px;
  padding: 8px;
  background: #eff6ff;
  border-radius: 6px;
  font-size: 12px;
  color: var(--primary-color);
  border-left: 3px solid var(--primary-color);
}

.test-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 32px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.close {
  position: absolute;
  right: 16px;
  top: 16px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: var(--secondary-color);
}

.close:hover {
  color: var(--text-color);
}

.results-content {
  margin: 24px 0;
}

.results-summary {
  background: var(--bg-color);
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.results-score {
  text-align: center;
  padding: 32px;
  background: white;
  border-radius: 8px;
  margin-bottom: 24px;
}

.score-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
}

.bugs-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.comparison-card {
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.comparison-found {
  background: #dbeafe;
}

.comparison-expected {
  background: #fef3c7;
}

.comparison-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.comparison-label {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.expected-bugs-list {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-top: 16px;
}

.expected-bug-item {
  padding: 12px;
  border-left: 4px solid var(--error-color);
  background: #fef2f2;
  margin-bottom: 12px;
  border-radius: 4px;
}

.expected-bug-item.found {
  border-color: var(--success-color);
  background: #f0fdf4;
}

.results-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
}

.alert {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* Footer Styles */
.site-footer {
  background: #333333;
  color: #999999;
  padding: 24px 0;
  margin-top: 60px;
  text-align: center;
  border-top: 1px solid rgba(153, 153, 153, 0.2);
}

.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0 20px;
}

.footer-text {
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 8px;
  color: #999999;
}

.footer-link {
  color: #6366f1;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: #818cf8;
  text-decoration: none;
}

.footer-subtext {
  font-size: 13px;
  color: #666666;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .container {
    padding: 24px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .welcome-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .test-header {
    flex-direction: column;
  }

  .user-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    padding: 24px 0;
    margin-top: 40px;
  }

  .footer-text {
    font-size: 14px;
  }

  .footer-subtext {
    font-size: 12px;
  }
}

/* ============================================================
   QUIZ SYSTEM STYLES
   ============================================================ */

/* Quiz Container */
.quiz-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.quiz-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.quiz-header h3 {
  color: var(--primary-color);
  margin-bottom: 12px;
}

.quiz-instructions {
  color: var(--secondary-color);
  margin-bottom: 12px;
}

.quiz-count {
  color: var(--text-color);
  font-size: 14px;
}

.quiz-questions {
  margin-bottom: 30px;
}

.quiz-question {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.2s;
}

.quiz-question:hover {
  box-shadow: var(--shadow-lg);
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.question-number {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 14px;
  text-transform: uppercase;
}

.question-points {
  font-size: 14px;
  color: var(--secondary-color);
  background: var(--bg-color);
  padding: 4px 12px;
  border-radius: 12px;
}

.question-text {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.6;
  color: var(--text-color);
}

.question-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-label {
  display: flex;
  align-items: center;
  padding: 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.option-label:hover {
  border-color: var(--primary-color);
  background: #eff6ff;
  transform: translateX(4px);
}

.option-label input[type="radio"],
.option-label input[type="checkbox"] {
  margin-right: 12px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.option-label input[type="radio"]:checked + span,
.option-label input[type="checkbox"]:checked + span {
  font-weight: 600;
  color: var(--primary-color);
}

.option-label span {
  flex: 1;
  font-size: 15px;
  line-height: 1.5;
}

.quiz-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* Quiz Results */
.quiz-results {
  max-width: 800px;
  margin: 0 auto;
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.results-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.results-header h2 {
  color: var(--text-color);
  margin-bottom: 20px;
}

.score-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  border: 10px solid;
  background: white;
  box-shadow: var(--shadow-lg);
}

.score-circle.success {
  border-color: var(--success-color);
  color: var(--success-color);
}

.score-circle.warning {
  border-color: var(--warning-color);
  color: var(--warning-color);
}

.score-circle.danger {
  border-color: var(--error-color);
  color: var(--error-color);
}

.score-value {
  font-size: 56px;
  font-weight: bold;
  line-height: 1;
}

.score-label {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 8px;
}

.results-message {
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
}

.results-message.success {
  background: #d1fae5;
  color: #065f46;
  border: 2px solid var(--success-color);
}

.results-message.warning {
  background: #fef3c7;
  color: #92400e;
  border: 2px solid var(--warning-color);
}

.results-message.danger {
  background: #fee2e2;
  color: #991b1b;
  border: 2px solid var(--error-color);
}

.results-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.stat {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.2s;
}

.stat:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--secondary-color);
  margin-bottom: 8px;
  text-transform: uppercase;
  font-weight: 500;
}

.stat-value {
  display: block;
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
}

.results-details {
  margin-bottom: 30px;
}

.results-details h3 {
  margin-bottom: 20px;
  color: var(--text-color);
}

.question-result {
  background: white;
  border: 1px solid var(--border-color);
  border-left: 5px solid;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.2s;
}

.question-result:hover {
  box-shadow: var(--shadow);
}

.question-result.correct {
  border-left-color: var(--success-color);
  background: #f0fdf4;
}

.question-result.incorrect {
  border-left-color: var(--error-color);
  background: #fef2f2;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 15px;
}

.result-icon {
  font-size: 24px;
  font-weight: bold;
}

.question-result.correct .result-icon {
  color: var(--success-color);
}

.question-result.incorrect .result-icon {
  color: var(--error-color);
}

.question-result .question-text {
  margin-bottom: 12px;
  color: var(--text-color);
}

.result-feedback {
  background: white;
  padding: 16px;
  border-radius: 8px;
  margin-top: 12px;
  font-size: 14px;
  border: 1px solid var(--border-color);
}

.result-feedback strong {
  color: var(--text-color);
  display: block;
  margin-bottom: 4px;
}

.result-explanation {
  margin-top: 12px;
  padding: 16px;
  background: #eff6ff;
  border-radius: 8px;
  font-size: 14px;
  border-left: 4px solid var(--primary-color);
}

.result-explanation strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 8px;
}

.results-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding: 20px;
}

/* Bug Reports Section in Results */
.bugs-reported-section {
  background: white;
  border-radius: 16px;
  padding: 30px;
  margin: 30px 0;
  border: 2px solid var(--border-color);
}

.bugs-reported-section h3 {
  color: var(--text-color);
  margin-bottom: 24px;
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bugs-feedback {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.bug-report-item {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid var(--border-color);
  transition: all 0.3s;
}

.bug-report-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(4px);
}

.bug-report-item.confidence-high {
  border-left-color: var(--success-color);
  background: #f0fdf4;
}

.bug-report-item.confidence-medium {
  border-left-color: var(--warning-color);
  background: #fffbeb;
}

.bug-report-item.confidence-low {
  border-left-color: var(--secondary-color);
  background: #f8fafc;
}

.bug-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.bug-number {
  background: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
}

.bug-severity {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.bug-severity.severity-low {
  background: #dbeafe;
  color: #1e40af;
}

.bug-severity.severity-medium {
  background: #fef3c7;
  color: #92400e;
}

.bug-severity.severity-high {
  background: #fee2e2;
  color: #991b1b;
}

.bug-severity.severity-critical {
  background: #fce7f3;
  color: #831843;
}

.bug-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: white;
  border: 1px solid var(--border-color);
  margin-left: auto;
}

.bug-description {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 12px;
  font-size: 15px;
}

.bug-validation {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.confidence-bar {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success-color), var(--primary-color));
  border-radius: 4px;
  transition: width 0.5s ease;
}

.confidence-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary-color);
  white-space: nowrap;
}

.bug-feedback {
  margin-top: 12px;
  padding: 12px;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-color);
}

.bug-feedback strong {
  color: var(--primary-color);
  margin-right: 6px;
}

.bugs-summary {
  display: flex;
  gap: 24px;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  color: white;
  flex-wrap: wrap;
}

.bugs-summary p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.bugs-summary strong {
  font-weight: 700;
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

/* Loading State */
.loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--secondary-color);
  font-size: 18px;
}

.loading::after {
  content: "...";
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%,
  20% {
    content: ".";
  }
  40% {
    content: "..";
  }
  60%,
  100% {
    content: "...";
  }
}

/* Error State */
.error {
  text-align: center;
  padding: 40px 20px;
  background: #fef2f2;
  border: 2px solid var(--error-color);
  border-radius: 12px;
  color: #991b1b;
}

.error p {
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .quiz-container {
    padding: 12px;
  }

  .quiz-question {
    padding: 16px;
  }

  .option-label {
    padding: 12px;
  }

  .score-circle {
    width: 120px;
    height: 120px;
  }

  .score-value {
    font-size: 40px;
  }

  .results-stats {
    grid-template-columns: 1fr;
  }

  .quiz-actions,
  .results-actions {
    flex-direction: column;
  }

  .quiz-actions button,
  .results-actions button {
    width: 100%;
  }
}

/* ===========================================
   DUAL SCORE DISPLAY & BUG ANALYSIS STYLES
   =========================================== */

/* Dual Score Cards Layout */
.dual-scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 30px 0;
}

.score-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.score-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.score-card.quiz-score {
  border-top: 4px solid var(--primary-color);
}

.score-card.quiz-score.success {
  border-top: 4px solid var(--success-color);
}

.score-card.quiz-score.warning {
  border-top: 4px solid var(--warning-color);
}

.score-card.quiz-score.danger {
  border-top: 4px solid var(--error-color);
}

.score-card.bugs-score {
  border-top: 4px solid #10b981;
}

.score-card h3 {
  margin-bottom: 20px;
  color: var(--text-color);
  font-size: 18px;
  font-weight: 600;
}

.score-card .score-circle {
  margin: 0 auto 12px;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-color);
}

.score-card .score-value {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-color);
}

.score-card .score-label {
  font-size: 12px;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.score-description {
  margin-top: 12px;
  color: var(--secondary-color);
  font-size: 14px;
}

/* Bug Analysis Section */
.bugs-analysis-section {
  background: white;
  border-radius: 16px;
  padding: 30px;
  margin: 30px 0;
  border: 2px solid var(--border-color);
}

.bugs-analysis-section h3 {
  margin-bottom: 24px;
  color: var(--text-color);
  font-size: 20px;
}

/* Summary Cards */
.bugs-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.summary-card {
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s;
}

.summary-card:hover {
  transform: translateY(-2px);
}

.summary-card.high {
  border-color: var(--success-color);
  background: #f0fdf4;
}

.summary-card.medium {
  border-color: var(--warning-color);
  background: #fffbeb;
}

.summary-card.low {
  border-color: var(--secondary-color);
  background: #f1f5f9;
}

.card-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.card-count {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-color);
}

.card-label {
  font-size: 14px;
  color: var(--secondary-color);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 4px;
}

/* Bug Analysis Items */
.bugs-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.bug-analysis-item {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s;
}

.bug-analysis-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.bug-analysis-item.confidence-high {
  border-left: 4px solid var(--success-color);
  background: #f0fdf4;
}

.bug-analysis-item.confidence-medium {
  border-left: 4px solid var(--warning-color);
  background: #fffbeb;
}

.bug-analysis-item.confidence-low {
  border-left: 4px solid var(--secondary-color);
  background: #f8fafc;
}

.bug-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.bug-number {
  font-weight: bold;
  color: var(--text-color);
  font-size: 16px;
}

.bug-severity {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.bug-severity.severity-high {
  background: #fee2e2;
  color: #991b1b;
}

.bug-severity.severity-medium {
  background: #fef3c7;
  color: #92400e;
}

.bug-severity.severity-low {
  background: #dbeafe;
  color: #1e40af;
}

.bug-status {
  margin-left: auto;
  font-size: 14px;
  color: var(--secondary-color);
  font-weight: 500;
}

.bug-description {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 12px;
}

.bug-validation-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin: 12px 0;
}

.confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  transition: width 0.6s ease;
}

/* Nuevos estilos para validación completa */
.global-score-card {
  background: white;
  border: 3px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin: 24px 0;
  transition: all 0.3s;
}

.global-score-card.confidence-high {
  border-color: var(--success-color);
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.global-score-card.confidence-medium {
  border-color: var(--warning-color);
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.global-score-card.confidence-low {
  border-color: var(--error-color);
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.score-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.score-value {
  font-size: 64px;
  font-weight: bold;
  color: var(--text-color);
  line-height: 1;
}

.score-max {
  font-size: 32px;
  color: var(--secondary-color);
}

.score-label {
  font-size: 18px;
  color: var(--secondary-color);
  margin-top: 8px;
  font-weight: 600;
}

.coverage-section,
.feedback-section,
.recommendations-section {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
}

.coverage-section h4,
.feedback-section h4,
.recommendations-section h4 {
  margin: 0 0 12px 0;
  color: var(--text-color);
  font-size: 18px;
}

.coverage-bar {
  height: 12px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 12px;
}

.coverage-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  transition: width 0.6s ease;
}

.bug-analysis-item.confidence-incorrect {
  border-left: 4px solid var(--error-color);
  background: #fef2f2;
}

.bug-feedback-msg.success {
  background: #f0fdf4;
  border-left: 4px solid var(--success-color);
  padding: 12px;
  margin-top: 12px;
  border-radius: 8px;
  color: #166534;
}

.bug-feedback-msg.error {
  background: #fef2f2;
  border-left: 4px solid var(--error-color);
  padding: 12px;
  margin-top: 12px;
  border-radius: 8px;
  color: #991b1b;
}

.bug-analysis-item.confidence-medium .confidence-fill {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.bug-analysis-item.confidence-low .confidence-fill {
  background: linear-gradient(90deg, #64748b, #475569);
}

.bug-feedback-msg {
  margin-top: 12px;
  padding: 12px;
  background: #f8fafc;
  border-left: 3px solid var(--primary-color);
  border-radius: 4px;
  font-size: 14px;
  color: var(--text-color);
}

.bug-feedback-msg strong {
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .dual-scores {
    grid-template-columns: 1fr;
  }

  .bugs-summary-cards {
    grid-template-columns: 1fr;
  }

  .score-card {
    padding: 20px;
  }

  .bugs-analysis-section {
    padding: 20px;
  }

  .bug-header {
    font-size: 14px;
  }

  .bug-status {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
  }

  .auth-tabs {
    flex-direction: column;
  }

  .auth-tab {
    width: 100%;
  }
}

/* ============================================
   AUTH TABS & DUAL AUTHENTICATION
   ============================================ */

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--border-color);
}

.auth-tab {
  flex: 1;
  padding: 16px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary-color);
  transition: all 0.3s;
  position: relative;
  bottom: -2px;
}

.auth-tab:hover {
  color: var(--primary-color);
  background: rgba(37, 99, 235, 0.05);
}

.auth-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background: transparent;
}

.auth-form {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.auth-form.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-form h3 {
  text-align: center;
  margin-bottom: 12px;
}

.auth-form > p {
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 24px;
  font-size: 15px;
}

/* Registration Tabs */
.registration-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border-color);
}

.reg-tab-btn {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  margin-bottom: -2px;
}

.reg-tab-btn:hover {
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.05);
}

.reg-tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  font-weight: 600;
}

[data-theme="dark"] .reg-tab-btn:hover {
  background: rgba(99, 102, 241, 0.1);
}

.reg-tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.reg-tab-content.active {
  display: block;
}

.form-help {
  display: block;
  color: var(--secondary-color);
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.4;
}

.form-group input[type="password"] {
  font-family: "Courier New", monospace;
  letter-spacing: 2px;
}

.form-group input[type="password"]::placeholder {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  letter-spacing: normal;
}

/* Password strength indicator */
.password-strength {
  height: 4px;
  border-radius: 2px;
  margin-top: 8px;
  background: var(--border-color);
  overflow: hidden;
  position: relative;
}

.password-strength-bar {
  height: 100%;
  transition: all 0.3s;
  border-radius: 2px;
}

.password-strength-bar.weak {
  width: 33%;
  background: var(--error-color);
}

.password-strength-bar.medium {
  width: 66%;
  background: var(--warning-color);
}

.password-strength-bar.strong {
  width: 100%;
  background: var(--success-color);
}

/* Auth buttons with loading state */
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Account locked message */
.notification.locked {
  background-color: #fef3c7;
  border-left: 4px solid var(--warning-color);
  color: #92400e;
}

/* Auth form validation states */
.form-group input.valid {
  border-color: var(--success-color);
}

.form-group input.invalid {
  border-color: var(--error-color);
}

.form-success {
  display: block;
  color: var(--success-color);
  font-size: 14px;
  margin-top: 4px;
}

/* Alternative auth link */
.auth-alternative {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  color: var(--secondary-color);
  font-size: 14px;
}

.auth-alternative a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.auth-alternative a:hover {
  text-decoration: underline;
}

/* Legal Links */
.legal-links {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.legal-links p {
  font-size: 0.85rem;
  color: var(--secondary-color);
  text-align: center;
  line-height: 1.8;
  margin: 0;
}

.legal-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.legal-links a:hover {
  text-decoration: underline;
  color: #1e40af;
}

.legal-links a:visited {
  color: var(--primary-color);
}

/* ===========================
   PROFILE SCREEN STYLES
   =========================== */

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-color);
}

.profile-header h2 {
  margin: 0;
}

.profile-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.profile-section {
  background: var(--bg-color);
  padding: 24px;
  border-radius: 8px;
}

.profile-section h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
  font-size: 1.3rem;
}

.profile-section h4 {
  margin-bottom: 12px;
  margin-top: 20px;
  color: var(--text-color);
  font-size: 1.1rem;
}

.section-description {
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-bottom: 16px;
  text-align: left;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: white;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.info-item label {
  font-weight: 600;
  color: var(--text-color);
  min-width: 120px;
}

.info-item span {
  color: var(--secondary-color);
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-form label {
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.95rem;
}

.profile-form input {
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
}

.profile-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-hint {
  font-size: 0.85rem;
  color: var(--secondary-color);
  font-style: italic;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.form-actions .btn {
  flex: 1;
  min-width: 150px;
}

.header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 0.95rem;
  display: none;
}

.message.success {
  background: #d1fae5;
  border: 1px solid var(--success-color);
  color: #065f46;
}

.message.error {
  background: #fee2e2;
  border: 1px solid var(--error-color);
  color: #991b1b;
}

.message.warning {
  background: #fef3c7;
  border: 1px solid var(--warning-color);
  color: #92400e;
}

/* Responsive profile styles */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .btn {
    flex: 1;
  }

  .info-item {
    flex-direction: column;
    gap: 4px;
  }

  .info-item label {
    min-width: auto;
  }
}

/* ===========================
   ADMIN NOTIFICATIONS SYSTEM
   =========================== */

/* Admin Tabs */
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border-color);
}

.tab-btn {
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary-color);
  transition: all 0.3s;
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: var(--primary-color);
  background: rgba(37, 99, 235, 0.05);
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Tab Content */
.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h3 {
  margin: 0;
}

/* Notification Cards */
.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notification-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s;
}

.notification-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.notification-card.inactive {
  opacity: 0.6;
  background: #f9fafb;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.notification-header h4 {
  margin: 0;
  color: var(--text-color);
  font-size: 1.1rem;
}

.notification-body {
  margin-bottom: 16px;
  color: var(--secondary-color);
  line-height: 1.6;
}

.notification-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
  font-size: 14px;
}

.meta-item {
  display: flex;
  gap: 4px;
  color: var(--secondary-color);
}

.notification-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Notification Badges */
.notification-badge,
.campaign-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-info {
  background: #dbeafe;
  color: #1e40af;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-error {
  background: #fee2e2;
  color: #991b1b;
}

.badge-completed {
  background: #d1fae5;
  color: #065f46;
}

.badge-sending {
  background: #fef3c7;
  color: #92400e;
}

/* Campaign Cards */
.campaigns-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.campaign-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
}

.campaign-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.campaign-header h4 {
  margin: 0;
  color: var(--text-color);
  font-size: 1.1rem;
}

.campaign-body {
  margin-bottom: 16px;
  color: var(--secondary-color);
}

.campaign-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 14px;
}

/* Campaign Form */
.campaign-form {
  max-width: 600px;
}

.campaign-form .form-hint {
  display: block;
  font-size: 0.85rem;
  color: var(--secondary-color);
  margin-top: 6px;
}

[data-theme="dark"] .campaign-form .form-hint {
  color: rgba(255, 255, 255, 0.6);
}

/* Email Method Warning Box */
.warning-box {
  margin: 15px 0;
  padding: 12px 16px;
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.5;
}

[data-theme="dark"] .warning-box {
  background: rgba(255, 193, 7, 0.15);
  border-color: #ffc107;
  color: #ffd54f;
}

.warning-box strong {
  font-weight: 700;
}

.warning-box a {
  color: #0066cc;
  text-decoration: underline;
}

[data-theme="dark"] .warning-box a {
  color: #64b5f6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 8px;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}

/* Notification Modal */
#notificationModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

#notificationModal .modal-content {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  padding: 32px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

#notificationModal h3 {
  margin-top: 0;
  margin-bottom: 24px;
  color: var(--text-color);
}

/* Login Notifications */
.login-notifications {
  margin-bottom: 24px;
}

.system-notification {
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 12px;
  position: relative;
  border: 1px solid;
  animation: slideDown 0.3s ease;
  backdrop-filter: blur(10px);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.system-notification strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.system-notification p {
  margin: 0;
  text-align: left;
  color: inherit;
}

.notification-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  transition: opacity 0.3s;
  padding: 0;
  width: 24px;
  height: 24px;
  line-height: 1;
}

.notification-close:hover {
  opacity: 1;
}

.notification-info {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--info-color);
  backdrop-filter: blur(10px);
}

[data-theme="light"] .notification-info {
  color: #1e40af;
}

[data-theme="dark"] .notification-info {
  color: #93c5fd;
}

.notification-success {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--success-color);
  backdrop-filter: blur(10px);
}

[data-theme="light"] .notification-success {
  color: #065f46;
}

[data-theme="dark"] .notification-success {
  color: #6ee7b7;
}

.notification-warning {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--warning-color);
  backdrop-filter: blur(10px);
}

[data-theme="light"] .notification-warning {
  color: #92400e;
}

[data-theme="dark"] .notification-warning {
  color: #fcd34d;
}

.notification-error {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--error-color);
  backdrop-filter: blur(10px);
}

[data-theme="light"] .notification-error {
  color: #991b1b;
}

[data-theme="dark"] .notification-error {
  color: #fca5a5;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--secondary-color);
}

.empty-state p {
  font-size: 16px;
}

/* Responsive Admin Styles */
@media (max-width: 768px) {
  .admin-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    padding: 10px 16px;
    font-size: 13px;
    white-space: nowrap;
  }

  .notification-actions {
    flex-direction: column;
  }

  .notification-actions .btn {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .notification-meta {
    flex-direction: column;
    gap: 8px;
  }

  .campaign-meta {
    flex-direction: column;
    gap: 8px;
  }

  #notificationModal .modal-content {
    padding: 24px;
  }
}
