/* ================================== */
/* CSS CUSTOM PROPERTIES (THEMING)    */
/* Note: Primary design tokens are in design-system.css */
/* These are kept for legacy component compatibility */
/* ================================== */
:root {
  /* Legacy color aliases - map to design-system.css tokens */
  --color-primary: var(--primary, #1e293b);
  --color-primary-dark: var(--primary-hover, #334155);
  --color-primary-light: var(--primary-light, #475569);
  --color-secondary: #00A3FF;
  
  /* Accent Colors */
  --color-accent: var(--accent, #3b82f6);
  --color-accent-dark: var(--accent-hover, #2563eb);
  --color-success: var(--success, #10b981);
  --color-warning: var(--warning, #f59e0b);
  --color-error: var(--error, #ef4444);
  
  /* Neutral Colors - use design-system grays */
  --color-text: var(--text-primary, #1e293b);
  --color-text-muted: var(--text-secondary, #64748b);
  --color-text-light: var(--text-muted, #94a3b8);
  --color-bg: var(--bg-secondary, #f8fafc);
  --color-bg-alt: var(--bg-tertiary, #f1f5f9);
  --color-white: var(--white, #ffffff);
  --color-border: var(--border-light, #e2e8f0);
}

/* ---------------------------------- */
/* ACCESSIBILITY UTILITIES */
/* ---------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------------------------------- */
/* RTL (RIGHT-TO-LEFT) SUPPORT */
/* ---------------------------------- */
.rtl-content {
  direction: rtl;
  text-align: right;
  unicode-bidi: embed;
}

.rtl-content * {
  direction: rtl;
  text-align: right;
}

.rtl-content p,
.rtl-content div,
.rtl-content span {
  direction: rtl;
  text-align: right;
  unicode-bidi: embed;
}

.rtl-content ul,
.rtl-content ol {
  direction: rtl;
  text-align: right;
  padding-right: 1.5em;
  padding-left: 0;
}

.rtl-content li {
  direction: rtl;
  text-align: right;
}

/* For mixed content (Arabic + English) */
.rtl-content .ltr-text {
  direction: ltr;
  text-align: left;
  unicode-bidi: embed;
}

/* Ensure proper line height and spacing for Arabic */
.rtl-content {
  line-height: 1.8;
  letter-spacing: 0.02em;
}

/* ---------------------------------- */
/* SPINNER OVERLAY STYLES (Enhanced) */
/* ---------------------------------- */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px); /* Adds a modern glassmorphism effect */
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.spinner-container {
  text-align: center;
}

.spinner {
  border: 8px solid #e0e0e0;
  border-top: 8px solid #007BFF;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

#spinner-message {
  font-size: 1rem;
  color: #333;
  font-weight: 500;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ---------------------------------- */
/* COPIED NOTIFICATION (Enhanced) */
/* ---------------------------------- */
.copied-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #28a745; /* Changed to a success green */
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.3s ease-in-out;
  opacity: 1;
}

.copied-notification.fade-out {
  animation: fadeOut 0.5s ease-in-out forwards;
}

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

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

/* ---------------------------------- */
/* RESET / BASE (Updated) */
/* ---------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; /* Modern font stack */
  background-color: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
  margin: 0;
}

/* Apply fade-in animation to body */
body.page-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.skip-to-content {
  position: absolute;
  top: -40px;
  left: 10px;
  background: #007BFF;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  z-index: 1000;
  transition: top 0.3s ease;
}

.skip-to-content:focus {
  top: 10px;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}

/* ---------------------------------- */
/* HERO SECTION (Enhanced) */
/* ---------------------------------- */
.hero {
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.7), rgba(0, 176, 255, 0.5)),
    url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  color: #fff;
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  z-index: 0;
}

.hero__content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero__subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

/* Optional CTA button in Hero */
.hero .btn--primary {
  background: #ff6f61; /* Coral color for contrast */
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.3s, transform 0.2s;
}

.hero .btn--primary:hover {
  background: #ff4f40;
  transform: translateY(-2px);
  color: #fff;
}

/* ---------------------------------- */
/* CONTAINER (Updated) */
/* ---------------------------------- */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem 3rem;
}

/* ---------------------------------- */
/* FEATURE SELECTION (Enhanced) */
/* ---------------------------------- */
.feature-selection {
  text-align: center;
  margin-bottom: 3rem;
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9); /* Glassmorphism effect */
}

.feature-selection__title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1e293b;
}

.feature-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn--feature {
  background: linear-gradient(135deg, #007BFF, #00A3FF); /* Align with primary color */
  color: #fff;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.3s;
}

.btn--feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  color: #fff;
}

/* ---------------------------------- */
/* CARD LAYOUT (Enhanced) */
/* ---------------------------------- */
.card {
  background: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px); /* Glassmorphism */
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.card__title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1e293b;
}

.card__info {
  margin-bottom: 1.5rem;
  color: #64748b;
  font-size: 1rem;
}

/* ---------------------------------- */
/* FORM GROUP (Enhanced) */
/* ---------------------------------- */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

label small {
  font-weight: normal;
  color: #64748b;
}

input[type="file"],
select,
input[type="text"],
input[type="password"],
input[type="email"] {
  display: block;
  margin-top: 0.25rem;
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="file"]:focus,
select:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: #007BFF;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* ---------------------------------- */
/* BUTTONS (Enhanced) */
/* ---------------------------------- */
.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.btn--primary {
  background: linear-gradient(135deg, #007BFF, #00A3FF);
  color: #fff;
}

.btn--primary:hover {
  background: linear-gradient(135deg, #0056b3, #0086cc);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  color: #fff;
}

.btn--secondary {
  background: #64748b;
  color: #fff;
}

.btn--secondary:hover {
  background: #4b5563;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
  color: #fff;
}

.btn__icon {
  font-size: 1.1rem;
}

/* ---------------------------------- */
/* ALERTS (Enhanced) */
/* ---------------------------------- */
.alert {
  padding: 12px 16px;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  font-weight: 500;
}

.alert--error {
  color: #9f1239;
  background: #ffe4e6;
  border: 1px solid #fecdd3;
}

/* ---------------------------------- */
/* RESULTS SECTION (Enhanced) */
/* ---------------------------------- */
.results-section__title {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 2rem 0 1.5rem;
  color: #1e293b;
}

.chat-container {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
}

.assistant-message {
  background: #fff;
  color: #1e293b;
  padding: 1.5rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  white-space: pre-wrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.assistant-message h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.assistant-message ul {
  margin-left: 1.5rem;
  list-style-type: disc;
}

.copy-btn {
  margin-top: 0.5rem;
}

/* ---------------------------------- */
/* FOOTER (Enhanced) */
/* ---------------------------------- */
.main-footer {
  text-align: center;
  font-size: 0.9rem;
  color: #cbd5e1;
  padding: 2.5rem 1.5rem;
  background: #1e293b;
  margin-top: 0;
  border-top: 3px solid #007BFF;
}

.main-footer a {
  color: #93c5fd;
  text-decoration: none;
  transition: color 0.2s ease;
}

.main-footer a:hover {
  color: #fff;
  text-decoration: none;
}

.footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #f1f5f9;
  font-weight: 500;
}

.footer__logo {
  height: 20px;
  width: auto;
}

.footer__tagline {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 4px 0 16px;
}

.footer__disclaimer {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #334155;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.footer__brand-link {
  color: #93c5fd;
  font-weight: 600;
  text-decoration: none;
  font-style: italic;
}

.footer__brand-link:hover {
  color: #fff;
}

.footer__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 12px 0;
  font-size: 0.8rem;
}

.footer__nav a {
  color: #94a3b8;
  padding: 0 12px;
  border-right: 1px solid #334155;
  transition: color 0.2s ease;
  line-height: 1;
}

.footer__nav a:last-child {
  border-right: none;
}

.footer__nav a:hover {
  color: #fff;
  text-decoration: none;
}

/* ---------------------------------- */
/* LOGIN PAGE HERO SECTION (Modern)   */
/* ---------------------------------- */
.login-hero {
  background: linear-gradient(135deg, #0a1628 0%, #0d2137 30%, #0a3a6b 60%, #004a99 100%);
  color: #fff;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 2rem;
}

.login-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 123, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 163, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(0, 86, 179, 0.08) 0%, transparent 40%);
  z-index: 0;
}

.login-hero::after { display: none; }

/* Floating geometric shapes */
.login-hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  z-index: 0;
}
.login-hero__shape--1 {
  width: 500px; height: 500px;
  background: #007BFF;
  top: -150px; right: -100px;
  animation: floatShape 20s ease-in-out infinite;
}
.login-hero__shape--2 {
  width: 300px; height: 300px;
  background: #00A3FF;
  bottom: -80px; left: -60px;
  animation: floatShape 25s ease-in-out infinite reverse;
}
.login-hero__shape--3 {
  width: 200px; height: 200px;
  background: #007BFF;
  top: 40%; left: 45%;
  animation: floatShape 18s ease-in-out infinite 5s;
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Split Layout */
.login-split {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.login-split__left {
  flex: 1;
  padding: 2rem 0;
}

.login-split__right {
  flex: 0 0 440px;
  max-width: 440px;
}

.login-hero__content {
  max-width: 540px;
}

/* Badge */
.login-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  animation: fadeSlideDown 0.6s ease-out;
}
.login-hero__badge i {
  color: #00A3FF;
  font-size: 0.8rem;
}

.login-hero__title {
  font-size: 3.8rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
  animation: fadeSlideDown 0.6s ease-out 0.1s backwards;
}

.login-hero__dot {
  color: #007BFF;
}

.login-hero__subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.7;
  margin-bottom: 3rem;
  line-height: 1.7;
  max-width: 460px;
  animation: fadeSlideDown 0.6s ease-out 0.2s backwards;
}

/* Stats row */
.login-hero__stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: fadeSlideDown 0.6s ease-out 0.3s backwards;
}

.login-hero__stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.login-hero__stat-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin-top: 2px;
}

.login-hero__stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12);
}

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

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Responsive: stack on mobile */
@media (max-width: 900px) {
  .login-hero {
    min-height: auto;
    padding: 6rem 1.5rem 3rem;
  }
  .login-split {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }
  .login-split__left { padding: 0; }
  .login-split__right { flex: unset; max-width: 100%; width: 100%; }
  .login-hero__title { font-size: 2.5rem; }
  .login-hero__subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
  .login-hero__stats { justify-content: center; gap: 1.5rem; }
}

/* ---------------------------------- */
/* FEATURE PAGE STYLES (Enhanced) */
/* ---------------------------------- */
.card--features-intro {
  text-align: left;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 3rem 0;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.feature-item__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #007BFF;
}

.feature-icon {
  display: inline-block;
}

.feature-item__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-item__desc {
  color: #64748b;
}

.extended-features__list {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
}

.extended-features__list li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
  padding-left: 1.5rem;
  position: relative;
}

.extended-features__list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #28a745;
  font-size: 1rem;
}

.extended-features__list li strong {
  color: #007BFF;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------------------------------- */
/* PRICING PAGE STYLES (Enhanced) */
/* ---------------------------------- */
.card--pricing-intro {
  text-align: left;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 3rem 0;
}

.pricing-tier {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-top: 4px solid #007BFF;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-tier:nth-child(1) { border-top-color: #007BFF; }
.pricing-tier:nth-child(2) { border-top-color: #28a745; }
.pricing-tier:nth-child(3) { border-top-color: #6f42c1; }

.pricing-tier:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.pricing-tier__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pricing-tier__subtitle {
  color: #64748b;
  margin-bottom: 1.5rem;
  font-style: italic;
  font-size: 0.95rem;
}

.pricing-tier__features {
  text-align: left;
  list-style: disc;
  margin: 0 auto 1.5rem auto;
  max-width: 300px;
  padding-left: 1.5rem;
}

.pricing-tier__features li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
  color: #1e293b;
}

.pricing-tier__price {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 1.5rem 0;
  color: #1e293b;
}

.pricing-tier__price span {
  display: block;
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------------------------------- */
/* POLICY PAGES (Privacy Policy, Terms of Use) */
/* ---------------------------------- */
.policy-section {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.policy-section__title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.5rem;
  text-align: center;
}

.policy-section__intro {
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.policy-section__intro strong {
  font-weight: 600;
}

.policy-section__subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2563eb;
  margin: 2rem 0 1rem;
}

.policy-section__text {
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.policy-section__text a {
  color: #2563eb;
  text-decoration: none;
}

.policy-section__text a:hover {
  text-decoration: underline;
}

.policy-section__list {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  list-style: disc;
}

.policy-section__list li {
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.policy-section__list li strong {
  font-weight: 600;
}

.policy-section__hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 2rem 0;
}

.policy-section__footer {
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
  margin-top: 2rem;
}

/* Accessibility: Disable Animations for Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .testimonial {
    animation: none;
    opacity: 1;
  }
}

/* --- Enhanced Look and Feel - Appended Styles --- */

/* General Body and Typography Enhancements */
body {
  font-family: 'Roboto', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; /* Modern, clean font stack */
  background-color: #f4f6f8; /* Slightly softer background */
  color: #333e48; /* Darker, more readable text */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1140px; /* Consistent max-width for content */
}

/* Improved Link Styling */
a {
  color: #0067c0; /* Slightly adjusted primary link color */
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover, a:focus {
  color: #004c8f; /* Darker hover/focus color */
  text-decoration: underline;
}

/* Enhanced Focus States for Accessibility */
*:focus-visible {
  outline: 3px solid #007bff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.25);
}

/* Card Enhancements */
.card {
  background-color: #ffffff;
  border: 1px solid #e1e8ed; /* Softer border */
  border-radius: 10px; /* Slightly more rounded corners */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07); /* Softer, more modern shadow */
  transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* Enhanced hover shadow */
}

.card__title {
  color: #2c3e50; /* Richer title color */
}

/* Button Enhancements */
.btn {
  border-radius: 8px; /* Consistent rounded corners for buttons */
  font-weight: 500; /* Slightly less bold, more modern */
  padding: 0.8rem 1.75rem; /* Adjusted padding */
  transition: background-color 0.2s ease-in-out, transform 0.15s ease-in-out, box-shadow 0.2s ease-in-out;
}

.btn--primary {
  background: linear-gradient(145deg, #007bff, #0056b3);
  box-shadow: 0 2px 5px rgba(0, 91, 179, 0.2);
}

.btn--primary:hover, .btn--primary:focus {
  background: linear-gradient(145deg, #0069d9, #004085);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 91, 179, 0.3);
}

.btn--secondary {
  background-color: #6c757d;
  border-color: #6c757d;
  box-shadow: 0 2px 5px rgba(108, 117, 125, 0.2);
}

.btn--secondary:hover, .btn--secondary:focus {
  background-color: #5a6268;
  border-color: #545b62;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(108, 117, 125, 0.3);
}

/* Form Element Enhancements */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="file"],
select,
textarea {
  border-radius: 6px;
  border: 1px solid #ced4da;
  padding: 0.75rem 1rem; /* Comfortable padding */
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="file"]:focus,
select:focus,
textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); /* Bootstrap-like focus shadow */
}

/* Navbar Enhancements */
.navbar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Softer shadow */
  background: #ffffff; /* Cleaner white background */
  border-bottom: 1px solid #e9ecef;
}

.navbar__logo-text {
  color: #2c3e50; /* Darker logo text for white background */
}

.navbar__link {
  color: #495057; /* Darker nav links for white background */
  font-weight: 500;
}

.navbar__link:hover, .navbar__link:focus {
  color: #0056b3;
}

.navbar__link--primary {
  background-color: #007bff;
  color: #ffffff;
}

.navbar__link--primary:hover, .navbar__link--primary:focus {
  background-color: #0056b3;
  color: #ffffff;
}

.navbar__toggle {
  color: #2c3e50; /* Darker toggle for white background */
}

/* Responsive Navbar links background */
@media (max-width: 768px) {
  .navbar__links {
    background: #ffffff; /* White background for dropdown */
    border-top: 1px solid #e9ecef;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  }
  .navbar__link {
    color: #495057; /* Ensure links are dark on white */
  }
}

/* Hero Section Enhancements */
.hero {
  padding: 4rem 1.5rem; /* Adjusted padding */
}

.hero__title {
  font-size: 2.8rem; /* Slightly adjusted size */
  color: #fff;
}

.hero__subtitle {
  font-size: 1.3rem; /* Slightly adjusted size */
  color: #f8f9fa;
  opacity: 0.9;
}

/* Footer Enhancements */
/* Footer overrides removed - consolidated above */

/* Login Page Specific Enhancements - Hero */
.login-hero {
  padding: 4rem 1.5rem;
}

.login-hero__title {
  font-size: 2.5rem;
}

.login-hero__subtitle {
  font-size: 1.2rem;
}

/* Testimonials Section Enhancements */
.testimonials {
  padding: 2rem 0;
}

.testimonials__title {
  color: #2c3e50;
  margin-bottom: 2rem;
}

.testimonial {
  background-color: #fff;
  border: 1px solid #e1e8ed;
  border-left: 5px solid #007bff;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.testimonial__image {
  border: 3px solid #007bff;
}

/* Empower Learners & Accessibility Sections on Login Page */
.empower-learners, .additional-empowerment-content, .sign-language-accessibility {
  padding: 2.5rem 1.5rem;
  margin-top: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.07);
}

.empower-learners {
  background-color: #e9f5ff; /* Light blue tint */
}

.additional-empowerment-content {
  background-color: #f8f9fa; /* Light grey tint */
}

.sign-language-accessibility {
  background-color: #e6f7ff; /* Another light blue tint */
}

/* Ensure appended styles don't break existing layout too much */
/* This is a general approach; specific overrides might be needed after testing */




/* --- Animations and Enhanced Visual Appeal for New Login Page Sections --- */

/* Keyframes for subtle fade-in and upward movement */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply animation to the new sections */
.additional-empowerment-content,
.sign-language-accessibility {
  animation: fadeInUp 0.8s ease-out forwards;
  /* Ensure sections are initially hidden if JS is disabled or animation doesn't run */
  opacity: 0; 
  animation-fill-mode: forwards; /* Keeps the state of the last keyframe */
}

/* Styling for the images within the new sections */
.additional-empowerment-content img,
.sign-language-accessibility img {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  max-width: 90%; /* Ensure image is not too overwhelming */
  margin-bottom: 1.5rem; /* Add some space below the image */
}

.additional-empowerment-content img:hover,
.sign-language-accessibility img:hover {
  transform: scale(1.05); /* Slight zoom effect on hover */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

/* Refined text styling for better readability and appeal in new sections */
.additional-empowerment-content__title,
.sign-language-accessibility__title {
  color: #2c3e50; /* Darker, more professional title color */
  position: relative;
  padding-bottom: 0.5rem;
}

.additional-empowerment-content__title::after,
.sign-language-accessibility__title::after {
  content: \'\';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #007bff; /* Accent color underline */
  border-radius: 2px;
}

.additional-empowerment-content__text,
.sign-language-accessibility__text {
  color: #5a6268; /* Softer text color for paragraphs */
  font-size: 1.1rem; /* Slightly increased font size for readability */
}

/* Adding a subtle hover effect to the section itself for interactivity */
.additional-empowerment-content:hover,
.sign-language-accessibility:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* More pronounced shadow on section hover */
}

/* Enhanced Login Form Container */
.login-container {
  max-width: 450px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.login-card {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(24px);
  border-radius: 24px;
  padding: 3rem 2.5rem 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: box-shadow 0.3s ease;
}

.login-card:hover {
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.login-card__title {
  font-size: 1.75rem;
  font-weight: 800;
  text-align: left;
  margin-bottom: 0.4rem;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.login-card__subtitle {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 2rem;
  font-weight: 400;
}

.login-card__title::after {
  display: none;
  border-radius: 2px;
}

/* Enhanced Form Styling */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #374151;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: #007BFF;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
  transform: translateY(-1px);
}

.form-input:focus + .form-icon {
  color: #007BFF;
}

/* Input Icons */
.form-group-with-icon {
  position: relative;
}

.form-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  pointer-events: none;
}

/* Enhanced Button Styling */
.btn--login {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #007BFF, #00A3FF);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: none;
  letter-spacing: 0.025em;
  margin-top: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn--login:hover {
  background: linear-gradient(135deg, #0056b3, #0086cc);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.btn--login:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Sign up link styling */
.login-options {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}
.login-options .forgot-password-link {
  font-size: 0.85rem;
  color: #007BFF;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.login-options .forgot-password-link:hover {
  color: #0056b3;
}

.login-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f1f5f9;
}

.login-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
}
.login-trust i {
  font-size: 0.7rem;
  color: #10b981;
}

.login-footer p {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.login-footer a {
  color: #007BFF;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.login-footer a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Enhanced Video Section */
.video-section {
  margin: 4rem auto;
  text-align: center;
  max-width: 800px;
  padding: 0 1.5rem;
}

.video-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1e293b;
  position: relative;
}

.video-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #007BFF, #00A3FF);
  border-radius: 2px;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  margin-top: 2rem;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

/* Enhanced Testimonials */
.testimonials {
  margin: 5rem auto;
  text-align: center;
  max-width: 1200px;
  padding: 0 1.5rem;
}

.testimonials__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #1e293b;
  position: relative;
}

.testimonials__title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #007BFF, #00A3FF);
  border-radius: 2px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  text-align: left;
  position: relative;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.testimonial:nth-child(1) { animation-delay: 0.2s; }
.testimonial:nth-child(2) { animation-delay: 0.4s; }
.testimonial:nth-child(3) { animation-delay: 0.6s; }

.testimonial:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: #007BFF;
  font-family: Georgia, serif;
  opacity: 0.3;
}

.testimonial__header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.testimonial__image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 1rem;
  border: 3px solid #007BFF;
  object-fit: cover;
}

.testimonial__info {
  flex: 1;
}

.testimonial__name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.testimonial__title {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0.25rem 0 0;
}

.testimonial__quote {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #374151;
  font-style: italic;
  margin: 0;
}

/* Enhanced Empowerment Section */
.empower-learners {
  margin: 5rem auto;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 1200px;
}

.empower-learners::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 123, 255, 0.05) 0%, transparent 70%);
  animation: rotate 30s linear infinite;
}

.empower-learners__content {
  position: relative;
  z-index: 2;
}

.empower-learners__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1e293b;
  position: relative;
}

.empower-learners__title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #007BFF, #00A3FF);
  border-radius: 2px;
}

.empower-learners__text {
  font-size: 1.2rem;
  color: #4b5563;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.empower-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.empower-learners__image {
  position: relative;
}

.empower-learners__image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.empower-learners__image:hover img {
  transform: scale(1.05);
}

.empower-learners__quote {
  text-align: left;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.quote-text {
  font-size: 1.3rem;
  font-style: italic;
  color: #374151;
  margin-bottom: 1rem;
  line-height: 1.6;
  position: relative;
}

.quote-text::before {
  content: '"';
  font-size: 2rem;
  color: #007BFF;
  position: absolute;
  left: -20px;
  top: -5px;
}

.quote-author {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

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

/* Enhanced Universal Learning Section */
.additional-empowerment-content {
  margin: 5rem auto !important;
  padding: 4rem 2rem !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9)) !important;
  backdrop-filter: blur(20px) !important;
  border-radius: 24px !important;
  text-align: center !important;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  position: relative !important;
  overflow: hidden !important;
  max-width: 1200px !important;
}

.additional-empowerment-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #007BFF, #00A3FF, #007BFF);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

.additional-empowerment-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 16px !important;
  margin-bottom: 2rem !important;
  max-height: 400px !important;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1) !important;
  transition: transform 0.3s ease !important;
}

.additional-empowerment-content img:hover {
  transform: scale(1.02) !important;
}

.additional-empowerment-content__title {
  font-size: 2.5rem !important;
  color: #1f2937 !important;
  margin-bottom: 1.5rem !important;
  font-weight: 700 !important;
  position: relative !important;
}

.additional-empowerment-content__title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, #007BFF, #00A3FF);
  border-radius: 2px;
}

.additional-empowerment-content__text {
  font-size: 1.2rem !important;
  color: #4b5563 !important;
  line-height: 1.8 !important;
  max-width: 800px !important;
  margin: 0 auto !important;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .login-hero__title {
    font-size: 2.5rem;
  }

  .login-hero__subtitle {
    font-size: 1.2rem;
  }

  .login-card {
    padding: 2rem 1.5rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .empower-content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .empower-learners__quote {
    text-align: center;
  }

  .empower-learners__title,
  .additional-empowerment-content__title {
    font-size: 2rem !important;
  }

  .testimonials__title {
    font-size: 2rem;
  }
}

/* ---------------------------------- */
/* ENHANCED STREAMING UX STYLES */
/* ---------------------------------- */

/* Scroll lock during processing */
body.scroll-locked {
  overflow: hidden;
  height: 100vh;
}

/* Processing indicator styling */
.processing-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border-radius: 12px;
  border: 2px dashed #007BFF;
  color: #1e293b;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  margin: 1rem 0;
  animation: pulseGlow 2s ease-in-out infinite;
}

.processing-indicator i {
  font-size: 1.5rem;
  color: #007BFF;
  animation: spin 2s linear infinite;
  display: inline-block;
  width: 24px;
  height: 24px;
}

.processing-indicator i::before {
  content: "";
  font-style: normal;
}

@keyframes pulseGlow {
  0%, 100% { 
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.1);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.2);
    transform: scale(1.02);
  }
}

/* Enhanced results section focus */
.results-section {
  scroll-margin-top: 2rem;
  transition: all 0.3s ease;
}

.results-section.streaming-active {
  background: rgba(0, 123, 255, 0.02);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(0, 123, 255, 0.1);
}

/* Form disabled state styling */
.form-disabled {
  pointer-events: none !important;
  opacity: 0.7 !important;
  transition: opacity 0.3s ease;
}

/* Enhanced spinner overlay for better UX */
.spinner-overlay {
  backdrop-filter: blur(8px) !important;
  background: rgba(255, 255, 255, 0.95) !important;
}

.spinner-overlay .spinner-container {
  transform: translateY(-20px);
}

/* Smooth content updates */
.assistant-message {
  transition: all 0.2s ease;
}

/* Mobile optimizations for scroll lock */
@media (max-width: 768px) {
  body.scroll-locked {
    overflow: hidden;
    height: 100vh;
  }
  
  .processing-indicator {
    padding: 1.5rem 1rem;
    font-size: 1rem;
  }
  
  .processing-indicator i {
    font-size: 1.25rem;
  }
}

/* ================================== */
/* MODERN UI COMPONENTS - 2024 UPDATE */
/* ================================== */

/* Modern Navbar */
.navbar-modern {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-modern__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.navbar-modern__brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #1e293b;
  font-weight: 700;
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.navbar-modern__brand-link:hover {
  transform: translateY(-1px);
  text-decoration: none;
  color: #1e293b;
}

.navbar-modern__logo {
  height: 50px;
  width: auto;
  border-radius: 8px;
}

.navbar-modern__text {
  background: linear-gradient(135deg, #007BFF, #00A3FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.navbar-modern__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.navbar-modern__toggle:hover {
  background: rgba(0, 123, 255, 0.1);
}

.navbar-modern__toggle-line {
  width: 24px;
  height: 3px;
  background: #007BFF;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.navbar-modern__toggle.is-active .navbar-modern__toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-modern__toggle.is-active .navbar-modern__toggle-line:nth-child(2) {
  opacity: 0;
}

.navbar-modern__toggle.is-active .navbar-modern__toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar-modern__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar-modern__links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-modern__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #64748b;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.navbar-modern__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(118, 75, 162, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navbar-modern__link:hover::before {
  opacity: 1;
}

.navbar-modern__link:hover {
  color: #007BFF;
  text-decoration: none;
  transform: translateY(-1px);
}

.navbar-modern__link[aria-current="page"] {
  color: #007BFF;
  background: rgba(0, 123, 255, 0.1);
}

.navbar-modern__link-icon {
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.navbar-modern__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-modern__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.navbar-modern__user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007BFF, #00A3FF);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

.navbar-modern__user-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.navbar-modern__user-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.9rem;
}

.navbar-modern__user-plan {
  font-size: 0.75rem;
  color: #64748b;
}

.navbar-modern__button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-size: 0.9rem;
}

.navbar-modern__button::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 ease;
}

.navbar-modern__button:hover::before {
  left: 100%;
}

.navbar-modern__button--primary {
  background: linear-gradient(135deg, #007BFF, #00A3FF);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.navbar-modern__button--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
  text-decoration: none;
  color: white;
}

.navbar-modern__button--secondary {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.navbar-modern__button--secondary:hover {
  background: rgba(100, 116, 139, 0.15);
  color: #475569;
  transform: translateY(-1px);
  text-decoration: none;
}

.navbar-modern__button--ghost {
  background: transparent;
  color: #007BFF;
  border: 1px solid rgba(0, 123, 255, 0.2);
}

.navbar-modern__button--ghost:hover {
  background: rgba(0, 123, 255, 0.1);
  color: #5a67d8;
  transform: translateY(-1px);
  text-decoration: none;
}

.navbar-modern__button-icon {
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .navbar-modern__container {
    height: 70px;
    padding: 0 1rem;
  }

  .navbar-modern__toggle {
    display: flex;
  }

  .navbar-modern__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    gap: 0;
    padding: 1.5rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
  }

  .navbar-modern__nav.is-active {
    max-height: 400px;
    opacity: 1;
  }

  .navbar-modern__links {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 1rem;
  }

  .navbar-modern__link {
    width: 100%;
    justify-content: flex-start;
    padding: 1rem;
    border-radius: 12px;
  }

  .navbar-modern__actions {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .navbar-modern__user {
    width: 100%;
    justify-content: flex-start;
    padding: 1rem;
  }

  .navbar-modern__button {
    width: 100%;
    justify-content: center;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .navbar-modern__brand-link {
    font-size: 1.1rem;
  }

  .navbar-modern__logo {
    height: 40px;
  }

  .navbar-modern__user {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .navbar-modern__user-info {
    align-items: center;
  }
}

/* Modern Form Groups */
.form-modern {
  max-width: 100%;
}

.form-group-modern {
  margin-bottom: 2rem;
}

.form-row-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.form-label-modern {
  display: block;
  margin-bottom: 0.35rem;
}

.form-label-modern__text {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.15rem;
}

.form-label-modern__hint {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: normal;
}

.form-link {
  color: #007BFF;
  text-decoration: none;
  font-weight: 500;
}

.form-link:hover {
  text-decoration: underline;
}

/* Modern File Upload */
.file-upload-modern {
  position: relative;
}

.file-upload-modern__input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-upload-modern__area {
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  text-align: center;
  background: rgba(248, 250, 252, 0.5);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.file-upload-modern__area::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.file-upload-modern__input:hover + .file-upload-modern__area,
.file-upload-modern__area:hover {
  border-color: #007BFF;
  background: rgba(0, 123, 255, 0.05);
}

.file-upload-modern__input:hover + .file-upload-modern__area::before {
  left: 100%;
}

.file-upload-modern__icon {
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
  opacity: 0.6;
}

.file-upload-modern__text {
  font-size: 0.85rem;
  color: #1e293b;
  margin-bottom: 0.2rem;
}

.file-upload-modern__hint {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Modern Select */
.select-modern {
  position: relative;
}

.select-modern__input {
  width: 100%;
  padding: 0.6rem 2.5rem 0.6rem 0.875rem;
  font-size: 0.875rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  transition: all 0.3s ease;
  appearance: none;
  cursor: pointer;
}

.select-modern__input:focus {
  outline: none;
  border-color: #007BFF;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.select-modern__icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  transition: transform 0.3s ease;
  font-size: 0.7rem;
}

.select-modern__input:focus + .select-modern__icon {
  transform: translateY(-50%) rotate(180deg);
  color: #007BFF;
}

/* Accessibility Options */
.accessibility-options {
  display: grid;
  gap: 0.5rem;
}

.accessibility-option {
  position: relative;
}

.accessibility-option__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.accessibility-option__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.accessibility-option__label::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.05), rgba(118, 75, 162, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.accessibility-option__input:checked + .accessibility-option__label {
  border-color: #007BFF;
  background: rgba(0, 123, 255, 0.05);
}

.accessibility-option__input:checked + .accessibility-option__label::before {
  opacity: 1;
}

.accessibility-option__label:hover {
  border-color: #007BFF;
}

.accessibility-option__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #007BFF, #00A3FF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.accessibility-option__content {
  flex: 1;
  text-align: left;
}

.accessibility-option__title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.1rem;
}

.accessibility-option__desc {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.3;
}

/* Level Options */
.level-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.level-option {
  position: relative;
  cursor: pointer;
}

.level-option__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.level-option__label {
  display: block;
  padding: 0.875rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: white;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.level-option__label::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(118, 75, 162, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.level-option__input:checked + .level-option__label {
  border-color: #007BFF;
  background: rgba(0, 123, 255, 0.05);
}

.level-option__input:checked + .level-option__label::before {
  opacity: 1;
}

.level-option__label:hover {
  border-color: #007BFF;
}

.level-option__title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.15rem;
  position: relative;
  z-index: 1;
}

.level-option__desc {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  position: relative;
  z-index: 1;
}

/* Modern Buttons */
.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  justify-content: center;
}

.btn-modern::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 ease;
}

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

.btn-modern--primary {
  background: linear-gradient(135deg, #007BFF, #00A3FF);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.25);
}

.btn-modern--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.35);
  color: white;
}

.btn-modern--secondary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.btn-modern--secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  color: white;
}

.btn-modern--ghost {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.btn-modern--ghost:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #1e293b;
}

.btn-modern__icon {
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.btn-modern__text {
  position: relative;
  z-index: 1;
}

.btn-modern__loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  opacity: 0;
  z-index: 2;
}

.btn-modern:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.btn-modern:disabled .btn-modern__loader {
  opacity: 1;
}

.btn-modern:disabled .btn-modern__icon,
.btn-modern:disabled .btn-modern__text {
  opacity: 0;
}

/* DOCX Download Button */
.btn-modern--docx {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(17, 153, 142, 0.25);
}

.btn-modern--docx:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(17, 153, 142, 0.35);
  color: white;
}

/* Modern Alert */
.alert-modern {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  font-weight: 500;
}

.alert-modern--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #dc2626;
}

.alert-modern__icon {
  font-size: 1.2rem;
}

.alert-modern__message {
  flex: 1;
}

/* Modern Results Section */
.results-section-modern {
  margin-top: 4rem;
  scroll-margin-top: 2rem;
}

.results-section-modern__header {
  text-align: center;
  margin-bottom: 3rem;
}

.results-section-modern__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #007BFF, #00A3FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.results-section-modern__icon {
  font-size: 2rem;
}

.results-section-modern__subtitle {
  font-size: 1.2rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

.results-container-modern {
  max-width: 900px;
  margin: 0 auto;
}

.results-content-modern {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.assistant-message-modern {
  background: #fafbfc;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  line-height: 1.75;
  color: #1e293b;
  font-size: 0.95rem;
  white-space: pre-wrap;
  min-height: 80px;
  max-height: 55vh;
  overflow-y: auto;
}

/* Clean typography for output */
.assistant-message-modern h1,
.assistant-message-modern h2,
.assistant-message-modern h3 {
  color: #1e293b;
  margin: 1.25em 0 0.5em 0;
  font-weight: 600;
  line-height: 1.3;
}

.assistant-message-modern h1 { font-size: 1.5rem; }
.assistant-message-modern h2 { font-size: 1.25rem; }
.assistant-message-modern h3 { font-size: 1.1rem; }

.assistant-message-modern p {
  margin: 0 0 1em 0;
}

.assistant-message-modern ul,
.assistant-message-modern ol {
  margin: 0.5em 0 1em 1.5em;
  padding: 0;
}

.assistant-message-modern li {
  margin-bottom: 0.4em;
}

.assistant-message-modern strong {
  color: #0f172a;
  font-weight: 600;
}

.results-actions-modern {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  margin-top: 1rem;
}

/* Animations */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-30px) rotate(1deg);
  }
  66% {
    transform: translateY(-20px) rotate(-1deg);
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .form-row-modern {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .accessibility-options {
    gap: 1rem;
  }

  .accessibility-option__label {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
  }

  .level-options {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .btn-modern {
    width: 100%;
    min-width: auto;
  }

  .results-actions-modern {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-modern__badge,
  .hero-modern__features {
    display: none;
  }

  .hero-modern__title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero-modern__subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .file-upload-modern__area {
    padding: 2rem 1rem;
  }
}

/* ============================================
   LOGIN PAGE - ENHANCED ANIMATIONS
   ============================================ */

/* Hero animations - uses original blue from earlier in file */
.login-hero__title {
  animation: fadeSlideDown 0.8s ease-out;
}

.login-hero__subtitle {
  animation: fadeSlideDown 0.8s ease-out 0.2s backwards;
}

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

/* Login Card Entrance */
.login-split__right {
  perspective: 1000px;
}

.login-card {
  animation: cardEntrance 0.5s ease-out 0.3s backwards;
}

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

/* Floating Label Input */
.form-group-enhanced {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group-enhanced .form-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  font-size: 0.95rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  transition: all 0.25s ease;
  outline: none;
}

.form-group-enhanced .form-input:focus {
  border-color: #007BFF;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.08);
}

.form-group-enhanced .form-input:focus + .floating-label,
.form-group-enhanced .form-input:not(:placeholder-shown) + .floating-label {
  transform: translateY(-2.35rem) translateX(-0.5rem) scale(0.85);
  color: #007BFF;
  background: #fff;
  padding: 0 0.5rem;
}

.floating-label {
  position: absolute;
  left: 2.75rem;
  top: 0.875rem;
  color: #94a3b8;
  font-size: 0.95rem;
  pointer-events: none;
  transition: all 0.25s ease;
  transform-origin: left center;
}

.form-group-enhanced .form-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #cbd5e1;
  font-size: 1rem;
  transition: all 0.25s ease;
  z-index: 1;
}

.form-group-enhanced:focus-within .form-icon {
  color: #007BFF;
}

/* Input shake on error */
.form-input.shake {
  animation: inputShake 0.5s ease-in-out;
}

@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Enhanced Login Button - Blue theme */
.btn--login-enhanced {
  width: 100%;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #007BFF;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn--login-enhanced::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 ease;
}

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

.btn--login-enhanced:hover {
  background: #0069d9;
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.btn--login-enhanced:active {
  transform: translateY(0);
}

.btn--login-enhanced .btn-icon {
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  transform: translateX(-10px);
}

.btn--login-enhanced:hover .btn-icon {
  opacity: 1;
  transform: translateX(0);
}

.btn--login-enhanced.loading {
  pointer-events: none;
  background: linear-gradient(135deg, #5ba3d9 0%, #7ec8e3 100%);
}

.btn--login-enhanced.loading .btn-text {
  opacity: 0;
}

.btn--login-enhanced.loading .btn-icon {
  display: none;
}

.btn--login-enhanced.loading::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.8s linear infinite;
}

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

.btn--login-enhanced.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn--login-enhanced.success::after {
  content: '✓';
  position: absolute;
  font-size: 1.5rem;
  animation: checkPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkPop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

/* Login Footer Links - Blue theme */
.login-footer a {
  position: relative;
  color: #007BFF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.login-footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #007BFF, #00A3FF);
  transition: width 0.3s ease;
}

.login-footer a:hover::after {
  width: 100%;
}

/* Error Alert Animation */
.alert--error {
  animation: alertSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Staggered Form Animation */
.login-card .form-group-enhanced:nth-child(1) {
  animation: formFieldSlide 0.5s ease-out 0.4s backwards;
}

.login-card .form-group-enhanced:nth-child(2) {
  animation: formFieldSlide 0.5s ease-out 0.5s backwards;
}

.login-card .btn--login-enhanced {
  animation: formFieldSlide 0.5s ease-out 0.6s backwards;
}

.login-footer {
  animation: formFieldSlide 0.5s ease-out 0.7s backwards;
}

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

/* Password Toggle */
.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.3s ease;
  z-index: 2;
}

.password-toggle:hover {
  color: #007BFF;
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleEffect 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleEffect {
  to { transform: scale(4); opacity: 0; }
}

/* ============================================
   LOGIN PAGE - TESTIMONIALS (ENHANCED)
   ============================================ */
.testimonial-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 120px;
  color: rgba(99, 102, 241, 0.05);
  font-family: serif;
  pointer-events: none;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.2);
}

/* ============================================
   INDEX PAGE - WIZARD COMPONENTS
   ============================================ */
.assistant-btn-primary {
  background: white;
  color: #1e1b4b;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.assistant-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.assistant-btn-secondary {
  background: transparent;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.3);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.assistant-btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

/* Wizard Progress */
.wizard-progress-compact {
  margin-bottom: 24px;
}

.wizard-progress-compact__bar {
  height: 3px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 16px;
}

.wizard-progress-compact__fill {
  height: 100%;
  background: linear-gradient(90deg, #007BFF 0%, #00A3FF 100%);
  transition: width 0.3s ease;
}

.wizard-progress-compact__steps {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.wizard-progress-compact__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.4;
  transition: opacity 0.3s;
  font-size: 12px;
  color: #64748b;
}

.wizard-progress-compact__step.active {
  opacity: 1;
  color: #007BFF;
  font-weight: 600;
}

.wizard-progress-compact__step.completed {
  opacity: 0.7;
}

.wizard-progress-compact__circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
}

.wizard-progress-compact__step.active .wizard-progress-compact__circle {
  background: linear-gradient(135deg, #007BFF 0%, #00A3FF 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.wizard-progress-compact__step.completed .wizard-progress-compact__circle {
  background: #10b981;
  color: white;
}

/* Wizard Container */
.wizard-container-compact {
  position: relative;
  min-height: 350px;
  overflow: hidden;
}

.wizard-step-compact {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.wizard-step-compact.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
  position: relative;
}

.wizard-step-compact.prev {
  transform: translateX(-50px);
}

/* Wizard Navigation */
.wizard-navigation-compact {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
  .wizard-progress-compact__step span {
    font-size: 10px;
  }
  .wizard-progress-compact__circle {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}

/* ============================================
   LOGIN PAGE - EMPOWERMENT SECTION
   ============================================ */
.empower-learners {
  padding: 120px 20px;
  background: #fcfdfe;
  position: relative;
  overflow: hidden;
}

.empower-learners__container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 80px;
}

.empower-visual-wrapper {
  flex: 1;
  position: relative;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.orbit-system {
  position: relative;
  width: 350px;
  height: 350px;
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.ring-1 { width: 100%; height: 100%; animation: rotate-ccw 40s linear infinite; }
.ring-2 { width: 70%; height: 70%; animation: rotate-cw 25s linear infinite; }

.orbit-node {
  position: absolute;
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(255,255,255,0.8);
  transition: transform 0.3s ease;
}

.node-1 { top: -24px; left: 50%; transform: translateX(-50%); }
.node-2 { bottom: -24px; left: 50%; transform: translateX(-50%); }
.node-3 { left: -24px; top: 50%; transform: translateY(-50%); }
.node-4 { right: -24px; top: 50%; transform: translateY(-50%); }

.central-learner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 40px;
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.3);
  z-index: 10;
  animation: pulse-enterprise 4s infinite ease-in-out;
}

@keyframes rotate-cw {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotate-ccw {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes pulse-enterprise {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
}

.empower-text-wrapper {
  flex: 1;
  text-align: left;
}

.empower-learners__title {
  font-size: 3rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 24px;
  line-height: 1.1;
}

.empower-learners__text {
  font-size: 1.125rem;
  color: #64748b;
  line-height: 1.8;
  margin-bottom: 40px;
}

.enterprise-quote {
  padding-left: 24px;
  border-left: 4px solid #007BFF;
  background: linear-gradient(to right, rgba(0, 123, 255, 0.02), transparent);
  padding: 20px 30px;
  border-radius: 0 16px 16px 0;
}

.quote-text-main {
  font-size: 1.05rem;
  color: #334155;
  font-weight: 500;
  margin-bottom: 12px;
}

.quote-author-main {
  font-size: 0.9rem;
  color: #007BFF;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 992px) {
  .empower-learners__container { flex-direction: column; text-align: center; gap: 40px; }
  .empower-text-wrapper { text-align: center; }
  .enterprise-quote { border-left: none; border-top: 4px solid #007BFF; border-radius: 16px; }
}

/* ============================================
   LOGIN PAGE - AI ASSISTANT STEPS
   ============================================ */
.assistant-animation-section {
  background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
  padding: 80px 20px;
}

.assistant-animation-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.visual-transformation-login {
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}

.morph-container-login {
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 60px;
  position: relative;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid transparent;
}

.morph-container-login.step-1 { border-color: #818cf8; transform: scale(1); }
.morph-container-login.step-2 { border-color: #a855f7; transform: scale(1.1) rotate(5deg); }
.morph-container-login.step-3 { border-color: #10b981; transform: scale(1); }

.icon-layer-login {
  position: absolute;
  transition: all 0.6s ease;
  opacity: 0;
  transform: scale(0.5) translateY(20px);
}

.icon-layer-login.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.icon-layer-login img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.particles-login {
  position: absolute;
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #007BFF, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.morph-container-login.step-2 .particles-login {
  opacity: 0.5;
  animation: flow-login 2s infinite linear;
}

@keyframes flow-login {
  0% { transform: scaleX(0.5) translateX(-50px); opacity: 0; }
  50% { opacity: 0.5; }
  100% { transform: scaleX(1.5) translateX(50px); opacity: 0; }
}

.assistant-header-login {
  margin-bottom: 60px;
}

.assistant-header-login h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
  color: #1a202c;
}

.assistant-header-login p {
  color: #6b7280;
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.steps-grid-login {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.step-card-login {
  background: white;
  padding: 32px;
  border-radius: 20px;
  text-align: left;
  border: 2px solid #e5e7eb;
  transition: all 0.4s ease;
  position: relative;
  opacity: 0.6;
  transform: translateY(0);
}

.step-card-login.active {
  opacity: 1;
  border-color: #007BFF;
  box-shadow: 0 12px 30px rgba(0, 123, 255, 0.15);
  transform: translateY(-8px);
}

.step-tag-login {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #007BFF;
  margin-bottom: 12px;
  display: block;
}

.step-card-login h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #1a202c;
}

.step-card-login p {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
}

.progress-bar-login {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #007BFF, #00A3FF);
  width: 0%;
  border-radius: 0 0 18px 18px;
}

.active .progress-bar-login {
  animation: progress-login 4s linear forwards;
}

@keyframes progress-login {
  from { width: 0%; }
  to { width: 100%; }
}

.cta-button-login {
  text-align: center;
}

.cta-button-login a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #007BFF 0%, #00A3FF 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.125rem;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
}

.cta-button-login a:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

@media (max-width: 768px) {
  .steps-grid-login { grid-template-columns: 1fr; }
  .assistant-header-login h2 { font-size: 1.8rem; }
  .assistant-animation-section { padding: 40px 20px; }
}

/* Testimonial additional styles */
.testimonial__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.testimonial__image {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.testimonial__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.testimonial__title {
  font-size: 0.85rem;
  color: #64748b;
  margin: 2px 0 0 0;
}

.testimonial__quote {
  font-size: 1rem;
  line-height: 1.7;
  color: #475569;
  font-style: italic;
}

@media (max-width: 992px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ============================================
   INDEX PAGE - FILE PREVIEW (Inline variant)
   ============================================ */
.file-preview__remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}

.file-preview__remove:hover {
  background: #fecaca;
  transform: scale(1.1);
}
