﻿/* =====================================================
   Doross Online - Educational Support Platform
   Main Stylesheet
   Colors: Blue (#2563eb) and Green (#10b981)
   Supports Arabic (RTL) and French (LTR)
===================================================== */

:root {
  --primary-blue: #2563eb;
  --primary-blue-dark: #1d4ed8;
  --primary-blue-light: #dbeafe;
  --primary-green: #10b981;
  --primary-green-dark: #059669;
  --primary-green-light: #d1fae5;
  --accent-gradient: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
  --dark: #1e293b;
  --dark-2: #334155;
  --gray: #64748b;
  --light-gray: #f1f5f9;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --font-ar: 'Tajawal', 'Segoe UI', sans-serif;
  --font-fr: 'Poppins', 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right;
  background-color: #f8fafc;
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}

body.lang-fr {
  direction: ltr;
  text-align: left;
  font-family: var(--font-fr);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: var(--white);
}

.btn-green {
  background: var(--primary-green);
  color: var(--white);
}

.btn-green:hover {
  background: var(--primary-green-dark);
  transform: translateY(-3px);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 17px;
}

/* ===== Top Bar ===== */
.top-bar {
  background: var(--dark);
  color: var(--white);
  padding: 10px 0;
  font-size: 14px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-info {
  display: flex;
  gap: 20px;
}

.top-bar-info span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switcher {
  display: flex;
  gap: 8px;
}

.lang-switcher button {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition);
}

.lang-switcher button.active,
.lang-switcher button:hover {
  background: var(--primary-green);
  border-color: var(--primary-green);
}

/* ===== Header ===== */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
}

.logo-icon {
  width: 45px;
  height: 45px;
  background: var(--accent-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 22px;
}

.logo span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-menu a {
  font-weight: 600;
  color: var(--dark-2);
  position: relative;
  padding: 5px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 3px;
  transition: var(--transition);
}

body.lang-fr .nav-menu a::after {
  right: auto;
  left: 0;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-blue);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--dark);
  cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, #eff6ff 0%, #ecfdf5 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: rgba(37, 99, 235, 0.05);
  border-radius: 50%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: rgba(16, 185, 129, 0.08);
  border-radius: 50%;
  z-index: 0;
}

body.lang-fr .hero::after {
  right: auto;
  left: -5%;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--primary-blue);
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.hero-badge .live-dot {
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
  font-size: 52px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--dark);
}

.hero-title span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 35px;
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(37, 99, 235, 0.1);
}

.hero-stat h3 {
  font-size: 36px;
  color: var(--primary-blue);
  font-weight: 800;
}

.hero-stat p {
  color: var(--gray);
  font-size: 14px;
}

.hero-image {
  position: relative;
}

.hero-image-main {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: var(--white);
  padding: 20px;
  position: relative;
  z-index: 1;
}

.hero-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 80px;
}

.floating-card {
  position: absolute;
  background: var(--white);
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.floating-card.card-1 {
  top: 20px;
  left: -30px;
}

.floating-card.card-2 {
  bottom: 30px;
  right: -20px;
}

body.lang-fr .floating-card.card-1 {
  left: auto;
  right: -30px;
}

body.lang-fr .floating-card.card-2 {
  right: auto;
  left: -20px;
}

.floating-card-icon {
  width: 45px;
  height: 45px;
  background: var(--primary-green-light);
  color: var(--primary-green-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.floating-card-text h4 {
  font-size: 16px;
  color: var(--dark);
}

.floating-card-text p {
  font-size: 13px;
  color: var(--gray);
}

/* ===== Section Common ===== */
.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-subtitle {
  display: inline-block;
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  padding: 6px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 15px;
}

.section-title {
  font-size: 38px;
  color: var(--dark);
  margin-bottom: 18px;
  line-height: 1.3;
}

.section-desc {
  color: var(--gray);
  font-size: 17px;
}

/* ===== Features Section ===== */
.features {
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 35px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: var(--transition);
}

body.lang-fr .feature-card::before {
  right: auto;
  left: 0;
  transform-origin: left;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 25px;
}

.feature-card:nth-child(1) .feature-icon { background: #dbeafe; color: #2563eb; }
.feature-card:nth-child(2) .feature-icon { background: #d1fae5; color: #059669; }
.feature-card:nth-child(3) .feature-icon { background: #fef3c7; color: #d97706; }
.feature-card:nth-child(4) .feature-icon { background: #fce7f3; color: #db2777; }
.feature-card:nth-child(5) .feature-icon { background: #e0e7ff; color: #4f46e5; }
.feature-card:nth-child(6) .feature-icon { background: #ccfbf1; color: #0d9488; }

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--dark);
}

.feature-card p {
  color: var(--gray);
  font-size: 15px;
}

/* ===== Levels Section ===== */
.levels {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.level-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.level-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: var(--white);
}

.level-card:nth-child(1) .level-image { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.level-card:nth-child(2) .level-image { background: linear-gradient(135deg, #10b981, #059669); }
.level-card:nth-child(3) .level-image { background: linear-gradient(135deg, #f59e0b, #d97706); }

.level-content {
  padding: 30px;
}

.level-content h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--dark);
}

.level-content p {
  color: var(--gray);
  margin-bottom: 20px;
  font-size: 15px;
}

.level-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--gray);
}

.level-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== Live Lessons Section ===== */
.live-lessons {
  background: var(--dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.live-lessons::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  opacity: 0.1;
}

.live-lessons .section-subtitle {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.live-lessons .section-title,
.live-lessons .section-desc {
  color: var(--white);
}

.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  position: relative;
  z-index: 1;
}

.lesson-card.locked {
  opacity: 0.85;
  background: #f8fafc;
}

.lesson-card.locked .lesson-icon {
  background: #e2e8f0;
  color: #94a3b8;
}

.lesson-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 25px;
  transition: var(--transition);
}

.lesson-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-5px);
}

.lesson-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ef4444;
  color: var(--white);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 15px;
}

.lesson-status.upcoming {
  background: #f59e0b;
}

.lesson-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.lesson-card p {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  margin-bottom: 15px;
}

.lesson-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

.lesson-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== Communication Section ===== */
.communication {
  background: var(--white);
}

.communication-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.communication-image {
  position: relative;
}

.communication-image-placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, #dbeafe 0%, #d1fae5 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  color: var(--primary-blue);
}

.communication-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--dark);
}

.communication-content > p {
  color: var(--gray);
  margin-bottom: 30px;
  font-size: 17px;
}

.communication-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.communication-list li i {
  width: 35px;
  height: 35px;
  background: var(--primary-green-light);
  color: var(--primary-green-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 3px;
}

body.lang-fr .communication-list li i {
  margin-top: 3px;
}

.communication-list li h4 {
  font-size: 18px;
  margin-bottom: 5px;
  color: var(--dark);
}

.communication-list li p {
  color: var(--gray);
  font-size: 14px;
}

/* ===== CTA Section ===== */
.cta {
  background: var(--accent-gradient);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}

.cta h2 {
  font-size: 38px;
  margin-bottom: 15px;
}

.cta p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.95;
}

.cta .btn-secondary {
  border-color: var(--white);
  color: var(--white);
}

.cta .btn-secondary:hover {
  background: var(--white);
  color: var(--primary-blue);
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 20px;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
  font-size: 15px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary-green);
  transform: translateY(-3px);
}

.footer h4 {
  font-size: 20px;
  margin-bottom: 25px;
  color: var(--white);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-green);
  padding-right: 5px;
}

body.lang-fr .footer-links a:hover {
  padding-right: 0;
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
}

.footer-contact li i {
  color: var(--primary-green);
  margin-top: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 25px 0;
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

/* ===== Page Header ===== */
.page-header {
  background: var(--accent-gradient);
  color: var(--white);
  padding: 100px 0 60px;
  text-align: center;
}

.page-header h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 18px;
  opacity: 0.9;
}

/* ===== Forms ===== */
.form-group {
  margin-bottom: 20px;
}

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

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  transition: var(--transition);
  background: var(--white);
}

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

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* ===== Contact Teachers Page ===== */
.contact-section {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-info-card {
  background: linear-gradient(135deg, #eff6ff 0%, #ecfdf5 100%);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-info-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--dark);
}

.contact-info-card > p {
  color: var(--gray);
  margin-bottom: 30px;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-method i {
  width: 45px;
  height: 45px;
  background: var(--white);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.contact-method h4 {
  font-size: 17px;
  margin-bottom: 3px;
  color: var(--dark);
}

.contact-method p {
  color: var(--gray);
  font-size: 14px;
}

.contact-form-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-form-card h3 {
  font-size: 24px;
  margin-bottom: 25px;
  color: var(--dark);
}

/* ===== Login Page ===== */
.login-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff 0%, #ecfdf5 100%);
  padding: 60px 20px;
}

.login-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  padding: 50px;
}

.login-card .logo {
  justify-content: center;
  margin-bottom: 30px;
}

.login-card h2 {
  text-align: center;
  margin-bottom: 10px;
  color: var(--dark);
}

.login-card > p {
  text-align: center;
  color: var(--gray);
  margin-bottom: 30px;
}

.login-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  background: var(--light-gray);
  padding: 5px;
  border-radius: 50px;
}

.login-tabs button {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  color: var(--gray);
  transition: var(--transition);
}

.login-tabs button.active {
  background: var(--white);
  color: var(--primary-blue);
  box-shadow: var(--shadow);
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
}

.forgot-password {
  color: var(--primary-blue);
  font-weight: 600;
}

.login-footer {
  text-align: center;
  margin-top: 25px;
  color: var(--gray);
  font-size: 14px;
}

.login-footer a {
  color: var(--primary-blue);
  font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero .container,
  .communication-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-image {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 80px);
    background: var(--white);
    flex-direction: column;
    padding: 40px 30px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
  }

  body.lang-fr .nav-menu {
    right: auto;
    left: -100%;
  }

  .nav-menu.active {
    right: 0;
  }

  body.lang-fr .nav-menu.active {
    left: 0;
    right: auto;
  }

  .mobile-menu-btn {
    display: block;
  }

  .header-actions .btn {
    display: none;
  }

  .top-bar-info {
    display: none;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-stats {
    gap: 20px;
  }

  .hero-stat h3 {
    font-size: 28px;
  }

  .section-title {
    font-size: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .login-card {
    padding: 30px 20px;
  }
}

/* =====================================================
   DASHBOARD STYLES
===================================================== */

.dashboard-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 80px);
  background: #f1f5f9;
}

.dashboard-sidebar {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 30px 0;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
  z-index: 100;
}

.dashboard-user {
  text-align: center;
  padding: 0 20px 25px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.dashboard-user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 15px;
}

.dashboard-user h4 {
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 5px;
}

.dashboard-user p {
  font-size: 13px;
  color: var(--gray);
}

.dashboard-nav {
  padding: 0 15px;
}

.dashboard-nav li {
  margin-bottom: 5px;
}

.dashboard-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  color: var(--dark-2);
  font-weight: 600;
  transition: var(--transition);
}

.dashboard-nav a i {
  width: 24px;
  text-align: center;
  color: var(--gray);
  transition: var(--transition);
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
}

.dashboard-nav a:hover i,
.dashboard-nav a.active i {
  color: var(--primary-blue);
}

.dashboard-main {
  padding: 30px;
  overflow-x: hidden;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.dashboard-header h1 {
  font-size: 28px;
  color: var(--dark);
}

.role-switcher {
  display: flex;
  gap: 8px;
  background: var(--white);
  padding: 5px;
  border-radius: 50px;
  box-shadow: var(--shadow);
}

.role-switcher button {
  padding: 8px 16px;
  border: none;
  background: transparent;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  color: var(--gray);
  transition: var(--transition);
  font-family: inherit;
}

.role-switcher button.active {
  background: var(--accent-gradient);
  color: var(--white);
}

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

.dashboard-stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: var(--transition);
}

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

.dashboard-stat-icon {
  width: 55px;
  height: 55px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.dashboard-stat-card:nth-child(1) .dashboard-stat-icon { background: #dbeafe; color: #2563eb; }
.dashboard-stat-card:nth-child(2) .dashboard-stat-icon { background: #d1fae5; color: #059669; }
.dashboard-stat-card:nth-child(3) .dashboard-stat-icon { background: #fef3c7; color: #d97706; }
.dashboard-stat-card:nth-child(4) .dashboard-stat-icon { background: #fce7f3; color: #db2777; }

.dashboard-stat-info h3 {
  font-size: 26px;
  color: var(--dark);
  margin-bottom: 3px;
}

.dashboard-stat-info p {
  color: var(--gray);
  font-size: 14px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
}

.dashboard-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
  margin-bottom: 25px;
}

.dashboard-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dashboard-card-header h3 {
  font-size: 20px;
  color: var(--dark);
}

.dashboard-card-header a {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 14px;
}

.dashboard-lesson-item,
.dashboard-message-item,
.dashboard-student-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #f1f5f9;
}

.dashboard-lesson-item:last-child,
.dashboard-message-item:last-child,
.dashboard-student-item:last-child {
  border-bottom: none;
}

.dashboard-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-item-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.dashboard-item-text h4 {
  font-size: 15px;
  color: var(--dark);
  margin-bottom: 3px;
}

.dashboard-item-text p {
  font-size: 13px;
  color: var(--gray);
}

.dashboard-item-status {
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
}

.status-live {
  background: #fee2e2;
  color: #dc2626;
}

.status-upcoming {
  background: #fef3c7;
  color: #d97706;
}

.status-completed {
  background: #d1fae5;
  color: #059669;
}

.dashboard-progress-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}

.dashboard-progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.dashboard-progress-item {
  margin-bottom: 18px;
}

.dashboard-progress-item h4 {
  font-size: 15px;
  color: var(--dark);
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
}

.dashboard-progress-item span {
  color: var(--primary-blue);
  font-weight: 700;
}

.dashboard-section {
  display: none;
}

.dashboard-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Dashboard Mobile */
@media (max-width: 992px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    height: auto;
    top: auto;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    z-index: 1000;
  }

  .dashboard-user {
    display: none;
  }

  .dashboard-nav {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
    width: 100%;
  }

  .dashboard-nav li {
    margin-bottom: 0;
    flex: 1;
  }

  .dashboard-nav a {
    flex-direction: column;
    padding: 8px 5px;
    font-size: 12px;
    gap: 5px;
  }

  .dashboard-nav a span {
    display: none;
  }

  .dashboard-main {
    padding: 20px 20px 100px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .dashboard-stats {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-stat-card {
    padding: 18px;
    flex-direction: column;
    text-align: center;
  }

  .dashboard-header h1 {
    font-size: 22px;
  }

  .role-switcher {
    width: 100%;
  }

  .role-switcher button {
    flex: 1;
    font-size: 12px;
    padding: 8px 10px;
  }
}

/* =====================================================
   NOTIFICATIONS
===================================================== */

.notification-bell {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--light-gray);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--dark-2);
  transition: var(--transition);
}

.notification-bell:hover {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  background: #ef4444;
  color: var(--white);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

body.lang-fr .notification-badge {
  right: auto;
  left: -2px;
}

.notification-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  width: 360px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
}

body.lang-fr .notification-dropdown {
  right: auto;
  left: 0;
}

.notification-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #f1f5f9;
}

.notification-header h4 {
  font-size: 16px;
  color: var(--dark);
}

.notification-header button {
  background: none;
  border: none;
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.notification-list {
  max-height: 400px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid #f8fafc;
  cursor: pointer;
  transition: var(--transition);
}

.notification-item:hover {
  background: #f8fafc;
}

.notification-item.unread {
  background: #eff6ff;
}

.notification-item.unread:hover {
  background: #dbeafe;
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.notification-icon.lesson { background: #dbeafe; color: #2563eb; }
.notification-icon.message { background: #d1fae5; color: #059669; }
.notification-icon.assignment { background: #fef3c7; color: #d97706; }
.notification-icon.system { background: #fce7f3; color: #db2777; }

.notification-content h5 {
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 4px;
}

.notification-content p {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.5;
}

.notification-time {
  font-size: 11px;
  color: var(--primary-blue);
  font-weight: 600;
  white-space: nowrap;
}

.notification-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray);
}

.notification-empty i {
  font-size: 48px;
  margin-bottom: 15px;
  color: #e2e8f0;
}

.notification-toast {
  position: fixed;
  top: 100px;
  right: 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  transform: translateX(150%);
  transition: transform 0.4s ease;
  max-width: 350px;
}

body.lang-fr .notification-toast {
  right: auto;
  left: 20px;
  transform: translateX(-150%);
}

.notification-toast.show {
  transform: translateX(0);
}

.notification-toast-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .notification-dropdown {
    position: fixed;
    top: 80px;
    right: 10px;
    left: 10px;
    width: auto;
  }

  body.lang-fr .notification-dropdown {
    left: 10px;
  }
}

/* =====================================================
   PROFILE PAGE
===================================================== */

.profile-section {
  background: linear-gradient(135deg, #eff6ff 0%, #ecfdf5 100%);
  min-height: calc(100vh - 140px);
  padding: 50px 0;
}

.profile-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.profile-header {
  background: var(--accent-gradient);
  color: var(--white);
  padding: 50px 40px;
  text-align: center;
  position: relative;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  margin: 0 auto 20px;
  border: 5px solid rgba(255,255,255,0.3);
}

.profile-header h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.profile-header p {
  opacity: 0.9;
  font-size: 16px;
}

.profile-body {
  padding: 40px;
}

.profile-section-title {
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-blue-light);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.profile-info-item {
  background: var(--light-gray);
  padding: 18px;
  border-radius: var(--radius-sm);
}

.profile-info-item label {
  display: block;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 5px;
}

.profile-info-item p {
  font-size: 16px;
  color: var(--dark);
  font-weight: 600;
}

.profile-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* =====================================================
   REPORTS PAGE
===================================================== */

.reports-section {
  background: #f1f5f9;
  min-height: calc(100vh - 140px);
  padding: 50px 0;
}

.reports-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.reports-header h1 {
  font-size: 32px;
  color: var(--dark);
}

.reports-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
}

.report-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 25px;
}

.report-card h3 {
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 25px;
}

.report-subject {
  margin-bottom: 25px;
}

.report-subject-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.report-subject-header h4 {
  font-size: 16px;
  color: var(--dark);
}

.report-subject-header span {
  font-weight: 700;
  color: var(--primary-blue);
}

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

.report-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s ease;
}

.report-bar-fill.excellent { background: linear-gradient(90deg, #10b981, #059669); }
.report-bar-fill.good { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.report-bar-fill.average { background: linear-gradient(90deg, #f59e0b, #d97706); }
.report-bar-fill.low { background: linear-gradient(90deg, #ef4444, #dc2626); }

.report-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 25px;
}

.report-summary-item {
  background: var(--light-gray);
  padding: 20px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.report-summary-item h4 {
  font-size: 28px;
  color: var(--primary-blue);
  margin-bottom: 5px;
}

.report-summary-item p {
  font-size: 13px;
  color: var(--gray);
}

.report-table {
  width: 100%;
  border-collapse: collapse;
}

.report-table th,
.report-table td {
  padding: 14px;
  text-align: right;
  border-bottom: 1px solid #f1f5f9;
}

body.lang-fr .report-table th,
body.lang-fr .report-table td {
  text-align: left;
}

.report-table th {
  background: var(--light-gray);
  font-weight: 700;
  color: var(--dark);
  font-size: 14px;
}

.report-table td {
  color: var(--gray);
  font-size: 14px;
}

.report-grade {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13px;
}

.report-grade.excellent { background: #d1fae5; color: #059669; }
.report-grade.good { background: #dbeafe; color: #2563eb; }
.report-grade.average { background: #fef3c7; color: #d97706; }
.report-grade.low { background: #fee2e2; color: #dc2626; }

.report-chart-placeholder {
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, #dbeafe 0%, #d1fae5 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--primary-blue);
}

.report-chart-placeholder i {
  font-size: 80px;
  margin-bottom: 15px;
}

.report-chart-placeholder p {
  font-weight: 700;
}

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

  .profile-header {
    padding: 40px 25px;
  }

  .profile-body {
    padding: 30px 25px;
  }
}

@media (max-width: 576px) {
  .reports-header h1 {
    font-size: 24px;
  }

  .report-table {
    font-size: 12px;
  }

  .report-table th,
  .report-table td {
    padding: 10px 8px;
  }
}

/* =====================================================
   LESSON DETAIL PAGE
===================================================== */

.lesson-detail-section {
  background: #f8fafc;
  padding: 40px 0 80px;
  min-height: calc(100vh - 140px);
}

.lesson-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.lesson-video-container {
  background: var(--dark);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 25px;
}

.lesson-video-player {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 80px;
  position: relative;
}

.lesson-video-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lesson-video-play-btn {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.9);
  color: var(--white);
  border: none;
  font-size: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lesson-video-play-btn:hover {
  transform: scale(1.1);
  background: var(--primary-blue);
}

.lesson-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 25px;
}

.lesson-info-card h1 {
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 15px;
}

.lesson-meta-info {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 20px;
}

.lesson-meta-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lesson-teacher {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--light-gray);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.lesson-teacher-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.lesson-teacher-info h4 {
  font-size: 17px;
  color: var(--dark);
  margin-bottom: 3px;
}

.lesson-teacher-info p {
  font-size: 14px;
  color: var(--gray);
}

.lesson-description {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 20px;
}

.lesson-tabs {
  display: flex;
  gap: 5px;
  background: var(--light-gray);
  padding: 5px;
  border-radius: 50px;
  margin-bottom: 25px;
}

.lesson-tabs button {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  color: var(--gray);
  transition: var(--transition);
  font-family: inherit;
}

.lesson-tabs button.active {
  background: var(--white);
  color: var(--primary-blue);
  box-shadow: var(--shadow);
}

.lesson-tab-content {
  display: none;
}

.lesson-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.material-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background: var(--light-gray);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.material-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.material-item-info i {
  font-size: 24px;
  color: var(--primary-blue);
}

.material-item-info h4 {
  font-size: 15px;
  color: var(--dark);
}

.material-item-info p {
  font-size: 12px;
  color: var(--gray);
}

.material-item .btn {
  padding: 8px 16px;
  font-size: 13px;
}

.comment-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.comment-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.comment-content {
  background: var(--light-gray);
  padding: 15px;
  border-radius: var(--radius-sm);
  flex: 1;
}

.comment-content h5 {
  font-size: 15px;
  color: var(--dark);
  margin-bottom: 5px;
}

.comment-content p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 8px;
}

.comment-time {
  font-size: 12px;
  color: var(--primary-blue);
}

.lesson-sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.lesson-sidebar-card h3 {
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 20px;
}

.lesson-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: var(--transition);
}

.lesson-item:hover {
  padding-right: 8px;
}

body.lang-fr .lesson-item:hover {
  padding-right: 0;
  padding-left: 8px;
}

.lesson-item:last-child {
  border-bottom: none;
}

.lesson-item-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.lesson-item.active .lesson-item-number {
  background: var(--primary-blue);
  color: var(--white);
}

.lesson-item-text h4 {
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 3px;
}

.lesson-item-text p {
  font-size: 12px;
  color: var(--gray);
}

.lesson-item.active .lesson-item-text h4 {
  color: var(--primary-blue);
}

/* =====================================================
   TEACHER DASHBOARD SECTIONS
===================================================== */

.teacher-section {
  display: none;
}

.teacher-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.student-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #f1f5f9;
}

.student-row:last-child {
  border-bottom: none;
}

.student-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.student-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.student-info h4 {
  font-size: 15px;
  color: var(--dark);
  margin-bottom: 3px;
}

.student-info p {
  font-size: 13px;
  color: var(--gray);
}

.student-grade {
  font-weight: 700;
  color: var(--primary-blue);
}

.upload-area {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  background: var(--light-gray);
  transition: var(--transition);
  cursor: pointer;
}

.upload-area:hover {
  border-color: var(--primary-blue);
  background: #eff6ff;
}

.upload-area i {
  font-size: 48px;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.upload-area h4 {
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 8px;
}

.upload-area p {
  color: var(--gray);
  font-size: 14px;
}

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

  .lesson-info-card h1 {
    font-size: 22px;
  }
}

@media (max-width: 576px) {
  .lesson-meta-info {
    gap: 15px;
  }

  .lesson-tabs {
    flex-direction: column;
    border-radius: var(--radius-sm);
  }

  .lesson-tabs button {
    border-radius: var(--radius-sm);
  }
}

/* =====================================================
   PARENT DASHBOARD
===================================================== */

.child-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
  transition: var(--transition);
}

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

.child-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.child-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.child-info h4 {
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 5px;
}

.child-info p {
  color: var(--gray);
  font-size: 14px;
}

.child-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.child-stat {
  text-align: center;
  padding: 15px;
  background: var(--light-gray);
  border-radius: var(--radius-sm);
}

.child-stat h5 {
  font-size: 22px;
  color: var(--primary-blue);
  margin-bottom: 3px;
}

.child-stat p {
  font-size: 12px;
  color: var(--gray);
}

.subscription-card {
  background: linear-gradient(135deg, #eff6ff 0%, #ecfdf5 100%);
  border-radius: var(--radius);
  padding: 25px;
  margin-bottom: 20px;
  border: 1px solid #dbeafe;
}

.subscription-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 15px;
}

.subscription-status.active {
  background: #d1fae5;
  color: #059669;
}

.subscription-status.expired {
  background: #fee2e2;
  color: #dc2626;
}

.payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f1f5f9;
}

.payment-row:last-child {
  border-bottom: none;
}

.payment-info h4 {
  font-size: 15px;
  color: var(--dark);
  margin-bottom: 3px;
}

.payment-info p {
  font-size: 12px;
  color: var(--gray);
}

.payment-amount {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-blue);
}

@media (max-width: 576px) {
  .child-stats {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   CHAT SYSTEM
===================================================== */

.chat-section {
  background: #f1f5f9;
  min-height: calc(100vh - 140px);
  padding: 30px 0 50px;
}

.chat-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  height: calc(100vh - 200px);
  min-height: 500px;
}

.chat-sidebar {
  background: var(--white);
  border-left: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}

body.lang-fr .chat-sidebar {
  border-left: none;
  border-right: 1px solid #e2e8f0;
}

.chat-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.chat-sidebar-header h3 {
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 15px;
}

.chat-search {
  position: relative;
}

.chat-search input {
  width: 100%;
  padding: 12px 15px 12px 40px;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition);
}

body.lang-fr .chat-search input {
  padding: 12px 40px 12px 15px;
}

.chat-search input:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.chat-search i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
}

body.lang-fr .chat-search i {
  left: auto;
  right: 15px;
}

.chat-contacts {
  flex: 1;
  overflow-y: auto;
}

.chat-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid #f8fafc;
}

.chat-contact:hover,
.chat-contact.active {
  background: #f8fafc;
}

.chat-contact.active {
  background: #eff6ff;
  border-right: 3px solid var(--primary-blue);
}

body.lang-fr .chat-contact.active {
  border-right: none;
  border-left: 3px solid var(--primary-blue);
}

.chat-contact-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  position: relative;
}

.chat-contact-avatar.online::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #10b981;
  border: 2px solid var(--white);
  border-radius: 50%;
}

body.lang-fr .chat-contact-avatar.online::after {
  right: auto;
  left: 2px;
}

.chat-contact-info {
  flex: 1;
  min-width: 0;
}

.chat-contact-info h4 {
  font-size: 15px;
  color: var(--dark);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-contact-info p {
  font-size: 13px;
  color: var(--gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-contact-meta {
  text-align: center;
}

.chat-contact-time {
  font-size: 11px;
  color: var(--gray);
  display: block;
  margin-bottom: 5px;
}

.chat-unread-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  background: var(--primary-blue);
  color: var(--white);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  padding: 0 6px;
}

.chat-main {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 25px;
  background: var(--white);
  border-bottom: 1px solid #f1f5f9;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-info h4 {
  font-size: 17px;
  color: var(--dark);
  margin-bottom: 2px;
}

.chat-header-info p {
  font-size: 12px;
  color: var(--gray);
}

.chat-header-actions {
  display: flex;
  gap: 10px;
}

.chat-header-actions button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--light-gray);
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
}

.chat-header-actions button:hover {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 25px;
}

.chat-date-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.chat-date-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e2e8f0;
}

.chat-date-divider span {
  background: #f8fafc;
  padding: 0 15px;
  font-size: 12px;
  color: var(--gray);
  position: relative;
}

.chat-message {
  display: flex;
  margin-bottom: 20px;
}

.chat-message.sent {
  justify-content: flex-start;
}

body.lang-fr .chat-message.sent {
  justify-content: flex-end;
}

.chat-message.received {
  justify-content: flex-end;
}

body.lang-fr .chat-message.received {
  justify-content: flex-start;
}

.chat-message-content {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 18px;
  position: relative;
}

.chat-message.sent .chat-message-content {
  background: var(--primary-blue);
  color: var(--white);
  border-bottom-left-radius: 4px;
}

body.lang-fr .chat-message.sent .chat-message-content {
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 4px;
}

.chat-message.received .chat-message-content {
  background: var(--white);
  color: var(--dark);
  border: 1px solid #e2e8f0;
  border-bottom-right-radius: 4px;
}

body.lang-fr .chat-message.received .chat-message-content {
  border-bottom-right-radius: 18px;
  border-bottom-left-radius: 4px;
}

.chat-message-text {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 5px;
}

.chat-message-time {
  font-size: 11px;
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-input-area {
  padding: 20px 25px;
  background: var(--white);
  border-top: 1px solid #f1f5f9;
}

.chat-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--light-gray);
  border-radius: 50px;
  padding: 8px 8px 8px 20px;
}

body.lang-fr .chat-input-wrapper {
  padding: 8px 20px 8px 8px;
}

.chat-input-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

.chat-input-actions {
  display: flex;
  gap: 8px;
}

.chat-input-actions button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-input-actions button:hover {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
}

.chat-input-actions button.send-btn {
  background: var(--accent-gradient);
  color: var(--white);
}

.chat-input-actions button.send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.chat-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  text-align: center;
  padding: 40px;
}

.chat-empty-state i {
  font-size: 80px;
  margin-bottom: 20px;
  color: #e2e8f0;
}

.chat-empty-state h3 {
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 10px;
}

.chat-mobile-back {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--dark);
  cursor: pointer;
  margin-left: 10px;
}

body.lang-fr .chat-mobile-back {
  margin-left: 0;
  margin-right: 10px;
}

@media (max-width: 992px) {
  .chat-container {
    grid-template-columns: 1fr;
    height: calc(100vh - 160px);
  }

  .chat-sidebar {
    display: flex;
  }

  .chat-sidebar.hidden {
    display: none;
  }

  .chat-main.hidden {
    display: none;
  }

  .chat-mobile-back {
    display: block;
  }
}

@media (max-width: 576px) {
  .chat-input-wrapper {
    padding: 6px 6px 6px 12px;
  }

  body.lang-fr .chat-input-wrapper {
    padding: 6px 12px 6px 6px;
  }

  .chat-message-content {
    max-width: 85%;
  }

  .chat-header {
    padding: 12px 15px;
  }

  .chat-messages {
    padding: 15px;
  }
}

/* =====================================================
   PRICING & PAYMENT
===================================================== */

.pricing-section {
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 50%, #ffffff 100%);
  padding: 80px 0;
}

.pricing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 50px;
}

.pricing-toggle span {
  font-weight: 600;
  color: var(--gray);
}

.pricing-toggle span.active {
  color: var(--dark);
}

.toggle-switch {
  width: 60px;
  height: 32px;
  background: var(--primary-blue);
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: var(--white);
  border-radius: 50%;
  transition: var(--transition);
}

body.lang-fr .toggle-switch::after {
  right: auto;
  left: 4px;
}

.toggle-switch.yearly::after {
  right: 32px;
}

body.lang-fr .toggle-switch.yearly::after {
  right: auto;
  left: 32px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 30px;
  box-shadow: var(--shadow);
  position: relative;
  transition: var(--transition);
  border: 2px solid transparent;
}

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

.pricing-card.popular {
  border-color: var(--primary-blue);
  transform: scale(1.05);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 30px;
  background: var(--accent-gradient);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
}

body.lang-fr .pricing-badge {
  right: auto;
  left: 30px;
}

.pricing-card h3 {
  font-size: 24px;
  color: var(--dark);
  margin-bottom: 10px;
}

.pricing-card > p {
  color: var(--gray);
  font-size: 15px;
  margin-bottom: 25px;
}

.pricing-price {
  margin-bottom: 30px;
}

.pricing-price .currency {
  font-size: 24px;
  color: var(--dark);
  font-weight: 700;
  vertical-align: top;
}

.pricing-price .amount {
  font-size: 56px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.pricing-price .period {
  color: var(--gray);
  font-size: 15px;
}

.pricing-features {
  margin-bottom: 30px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: var(--dark-2);
  font-size: 15px;
}

.pricing-features li i {
  color: var(--primary-green);
  font-size: 16px;
}

.pricing-features li.not-included {
  color: var(--gray);
}

.pricing-features li.not-included i {
  color: #cbd5e1;
}

.pricing-card .btn {
  width: 100%;
}

.payment-section {
  background: linear-gradient(135deg, #eff6ff 0%, #ecfdf5 100%);
  min-height: calc(100vh - 140px);
  padding: 50px 0;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.payment-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.payment-form-card h2 {
  font-size: 24px;
  color: var(--dark);
  margin-bottom: 10px;
}

.payment-form-card > p {
  color: var(--gray);
  margin-bottom: 30px;
}

.payment-methods {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.payment-method {
  flex: 1;
  padding: 15px;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.payment-method:hover,
.payment-method.active {
  border-color: var(--primary-blue);
  background: #eff6ff;
}

.payment-method i {
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--primary-blue);
}

.payment-method p {
  font-size: 13px;
  color: var(--dark);
  font-weight: 600;
}

.card-input-group {
  display: flex;
  gap: 15px;
}

.card-input-group .form-group {
  flex: 1;
}

.order-summary {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.order-summary h3 {
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f1f5f9;
}

.order-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  color: var(--gray);
  font-size: 15px;
}

.order-item.total {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  padding-top: 15px;
  border-top: 1px solid #f1f5f9;
  margin-top: 15px;
}

.order-plan {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  padding: 15px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.order-plan h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

.order-plan p {
  font-size: 14px;
}

.secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--gray);
  font-size: 13px;
}

.secure-badge i {
  color: var(--primary-green);
}

.subscription-success {
  text-align: center;
  padding: 60px 40px;
}

.subscription-success i {
  font-size: 80px;
  color: var(--primary-green);
  margin-bottom: 20px;
}

.subscription-success h2 {
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 15px;
}

.subscription-success p {
  color: var(--gray);
  margin-bottom: 30px;
}

@media (max-width: 992px) {
  .pricing-card.popular {
    transform: none;
  }

  .pricing-card.popular:hover {
    transform: translateY(-10px);
  }

  .payment-grid {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }
}

@media (max-width: 576px) {
  .pricing-price .amount {
    font-size: 42px;
  }

  .payment-methods {
    flex-direction: column;
  }

  .card-input-group {
    flex-direction: column;
    gap: 0;
  }
}

/* Dark Mode */
body.dark {
  background-color: #0f172a;
  color: #e2e8f0;
}

body.dark .header,
body.dark .top-bar {
  background: #1e293b;
  border-color: #334155;
}

body.dark .logo {
  color: #e2e8f0;
}

body.dark .nav-menu a {
  color: #cbd5e1;
}

body.dark .nav-menu a:hover,
body.dark .nav-menu a.active {
  color: var(--primary-blue);
  background: rgba(37, 99, 235, 0.15);
}

body.dark .dashboard-card,
body.dark .admin-card,
body.dark .login-card,
body.dark .child-card,
body.dark .subscription-card,
body.dark .pricing-card {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

body.dark .dashboard-card-header h3,
body.dark .dashboard-card-header h4,
body.dark .admin-card-header h3,
body.dark .section-title {
  color: #f1f5f9;
}

body.dark .form-control,
body.dark input,
body.dark select,
body.dark textarea {
  background: #334155;
  border-color: #475569;
  color: #f1f5f9;
}

body.dark .form-control::placeholder {
  color: #94a3b8;
}

body.dark .dashboard-sidebar {
  background: #1e293b;
  border-color: #334155;
}

body.dark .dashboard-nav a {
  color: #cbd5e1;
}

body.dark .dashboard-nav a:hover,
body.dark .dashboard-nav a.active {
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary-blue);
}

body.dark .dashboard-stat-card,
body.dark .admin-stat-card {
  background: #334155;
}

body.dark .report-table,
body.dark .admin-table {
  color: #e2e8f0;
}

body.dark .report-table th,
body.dark .admin-table th {
  background: #334155;
  color: #f1f5f9;
}

body.dark .report-table td,
body.dark .admin-table td {
  border-color: #334155;
}

body.dark .lesson-card {
  background: #1e293b;
}

body.dark .lesson-card.locked {
  background: #334155;
}

body.dark .modal-content {
  background: #1e293b;
  color: #f1f5f9;
}

body.dark .modal-header {
  border-color: #334155;
}

body.dark .stream-chat-messages {
  background: #0f172a;
}

body.dark .stream-chat-message {
  background: #1e293b;
}

body.dark .stream-chat-message.own {
  background: rgba(37, 99, 235, 0.2);
}

body.dark .stream-chat-input input {
  background: #334155;
  border-color: #475569;
  color: #f1f5f9;
}

body.dark .dark-mode-toggle {
  color: #f1f5f9;
}

body.dark .footer {
  background: #1e293b;
  color: #cbd5e1;
}

body.dark .top-bar {
  color: #cbd5e1;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 500px;
  overflow: hidden;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--gray);
  cursor: pointer;
}

.modal-body {
  padding: 20px;
}

/* =====================================================
   Toast Notifications
   ===================================================== */
.toast-container {
  position: fixed;
  top: 100px;
  left: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  width: calc(100% - 40px);
  pointer-events: none;
}

body.lang-ar .toast-container {
  left: auto;
  right: 20px;
}

.toast {
  background: var(--white);
  color: var(--dark);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: auto;
  border-right: 4px solid var(--primary-blue);
}

body.lang-ar .toast {
  transform: translateX(-120%);
  border-right: none;
  border-left: 4px solid var(--primary-blue);
}

body.lang-fr .toast {
  transform: translateX(-120%);
  border-right: 4px solid var(--primary-blue);
  border-left: none;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.success {
  border-color: var(--primary-green);
}

.toast.error {
  border-color: #ef4444;
}

.toast.warning {
  border-color: #f59e0b;
}

.toast.info {
  border-color: var(--primary-blue);
}

.toast i {
  font-size: 18px;
  flex-shrink: 0;
}

.toast.success i { color: var(--primary-green); }
.toast.error i { color: #ef4444; }
.toast.warning i { color: #f59e0b; }
.toast.info i { color: var(--primary-blue); }

/* =====================================================
   Loading Skeletons
   ===================================================== */
.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  border-radius: var(--radius-sm);
  animation: skeleton-loading 1.2s infinite;
}

body.dark .skeleton {
  background: linear-gradient(90deg, #334155 25%, #475569 50%, #334155 75%);
  background-size: 200% 100%;
}

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

.skeleton-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.dark .skeleton-card {
  background: var(--dark-2);
}

.skeleton-title {
  height: 20px;
  width: 70%;
}

.skeleton-text {
  height: 14px;
  width: 100%;
}

.skeleton-text.short {
  width: 50%;
}

.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.skeleton-row {
  height: 48px;
  width: 100%;
  margin-bottom: 8px;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  grid-column: 1 / -1;
}

.empty-state i {
  font-size: 56px;
  color: var(--gray);
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--dark);
}

.empty-state p {
  color: var(--gray);
  margin-bottom: 20px;
}

/* Mobile header improvements */
@media (max-width: 768px) {
  .header-actions .btn {
    display: none;
  }

  .nav-menu .mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
  }

  .nav-menu .mobile-nav-actions .btn {
    display: flex;
    width: 100%;
    justify-content: center;
  }

  .nav-menu .mobile-nav-actions .dark-mode-toggle {
    display: inline-flex;
    align-self: flex-start;
  }
}

@media (min-width: 769px) {
  .nav-menu .mobile-nav-actions {
    display: none;
  }
}

