:root{--primary: #4F46E5;--primary-hover: #4338CA;--bg-dark: #1F2937;--text-light: #F9FAFB;--font-family: "Inter", system-ui, sans-serif}*{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font-family);background-color:var(--bg-dark);color:var(--text-light);line-height:1.5;direction:rtl}.app-container{min-height:100vh;display:flex;flex-direction:column}.navbar{display:flex;justify-content:space-between;align-items:center;padding:1.5rem 3rem;background-color:#111827cc;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid rgba(255,255,255,.1)}.logo{font-size:1.5rem;font-weight:700;background:linear-gradient(135deg,#60a5fa,#a78bfa);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.nav-links{display:flex;gap:2rem}.nav-links a{color:#d1d5db;text-decoration:none;font-weight:500;transition:color .3s ease}.nav-links a:hover{color:#fff}.hero{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:4rem 2rem;background:radial-gradient(circle at center,rgba(79,70,229,.15) 0%,transparent 70%)}.hero h1{font-size:3.5rem;margin-bottom:1.5rem;font-weight:800;letter-spacing:-.025em}.hero p{font-size:1.25rem;color:#9ca3af;margin-bottom:2.5rem;max-width:600px}.btn-primary{background-color:var(--primary);color:#fff;border:none;padding:1rem 2.5rem;font-size:1.125rem;font-weight:600;border-radius:9999px;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 4px 14px #4f46e563}.btn-primary:hover{background-color:var(--primary-hover);transform:translateY(-2px);box-shadow:0 6px 20px #4f46e53b}.dashboard{display:flex;min-height:100vh}.sidebar{width:250px;background-color:#111827;padding:2rem;border-left:1px solid rgba(255,255,255,.1)}.sidebar h2{margin-bottom:2rem;color:#60a5fa}.sidebar ul{list-style:none}.sidebar li{margin-bottom:1rem;cursor:pointer;color:#d1d5db}.sidebar li:hover{color:#fff}.main-content{flex:1;padding:2rem}.stats-grid{display:flex;gap:2rem;margin-top:2rem}.stat-card{background:#ffffff0d;padding:2rem;border-radius:12px;flex:1;text-align:center}.highlight-card{background:#4f46e51a;padding:2rem;border-radius:12px;border:1px solid rgba(79,70,229,.3);margin-top:2rem;text-align:center}.alert-message{width:100%;background:#ef4444;color:#fff;text-align:center;padding:1rem;font-weight:700}.video-container{width:100%;height:400px;background:#000;display:flex;align-items:center;justify-content:center;border-radius:12px;margin:2rem 0;color:#9ca3af}.schedule-list li{margin-bottom:1rem;list-style:circle;margin-right:2rem}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
  }
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }
  .hero {
    padding: 2rem 1rem;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .btn-primary {
    padding: 0.75rem 2rem;
    font-size: 1rem;
  }
  .dashboard {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    border-left: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .stats-grid {
    flex-direction: column;
    gap: 1rem;
  }
  .stat-card {
    padding: 1rem;
  }
  .highlight-card {
    padding: 1rem;
  }
  .video-container {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
  }
  .nav-links {
    display: none;
  }
  .hero {
    padding: 2rem 1rem;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .btn-primary {
    padding: 0.75rem 2rem;
    font-size: 1rem;
  }
  .dashboard {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    border-left: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .stats-grid {
    flex-direction: column;
    gap: 1rem;
  }
  .stat-card {
    padding: 1rem;
  }
  .highlight-card {
    padding: 1rem;
  }
  .video-container {
    height: 250px;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .app-container {
    width: 100%;
    overflow-x: hidden;
  }

  .navbar {
    position: sticky;
    top: 0;
    padding: 1rem !important;
    align-items: stretch !important;
  }

  .logo {
    justify-content: center;
    text-align: center;
    font-size: 1.2rem !important;
    line-height: 1.3;
  }

  .nav-links {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem !important;
    width: 100%;
  }

  .nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: .65rem .9rem !important;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    font-size: .95rem;
    text-align: center;
  }

  .nav-links a[href="/login"] {
    width: 100%;
    max-width: 260px;
    margin-inline: auto;
  }

  .hero-section {
    min-height: auto !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 1.25rem 1rem 2rem !important;
    gap: 1.25rem !important;
  }

  .hero-section > div {
    min-width: 100% !important;
    width: 100% !important;
  }

  .main-content {
    padding: 1rem !important;
  }

  .highlight-card,
  .stat-card {
    padding: 1rem !important;
    border-radius: 14px;
  }

  form {
    width: 100%;
  }

  input,
  select,
  button,
  textarea {
    max-width: 100%;
  }

  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  th,
  td {
    white-space: nowrap;
  }

  .schedule-list {
    padding-right: 1rem;
  }

  .schedule-list li {
    margin-right: 1rem;
  }

  .video-container {
    height: 220px !important;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: .85rem !important;
  }

  .logo {
    font-size: 1rem !important;
  }

  .nav-links {
    gap: .5rem !important;
  }

  .nav-links a {
    width: 100%;
    font-size: .9rem;
    padding: .7rem .8rem !important;
  }

  .hero h1,
  .hero-section h1 {
    font-size: 1.8rem !important;
  }

  .hero p,
  .hero-section p {
    font-size: .95rem !important;
  }

  .btn-primary {
    width: 100%;
    padding: .85rem 1rem;
  }

  .main-content {
    padding: .85rem !important;
  }
}

.admin-dashboard {
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(79, 70, 229, 0.10), transparent 26%),
    linear-gradient(180deg, #0f172a 0%, #111827 38%, #0b1120 100%);
}

.admin-dashboard .sidebar {
  width: 280px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.92));
  border-left: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
  position: sticky;
  top: 0;
  min-height: 100vh;
  backdrop-filter: blur(10px);
}

.admin-dashboard .sidebar h2 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.admin-dashboard .sidebar ul {
  display: grid;
  gap: 0.65rem;
}

.admin-dashboard .sidebar li {
  margin-bottom: 0;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-dashboard .sidebar li:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(96, 165, 250, 0.22);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

.admin-dashboard .main-content {
  padding: 2.25rem;
}

.admin-dashboard .main-content h1 {
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.65rem;
}

.admin-dashboard .main-content h3 {
  letter-spacing: -0.02em;
}

.admin-dashboard .stats-grid {
  gap: 1.25rem;
}

.admin-dashboard .stat-card,
.admin-dashboard .highlight-card {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(10px);
}

.admin-dashboard .stat-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
}

.admin-dashboard .highlight-card {
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.14), rgba(30, 41, 59, 0.58));
}

.admin-dashboard .stat-card:hover,
.admin-dashboard .highlight-card:hover {
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.24);
}

.admin-dashboard input,
.admin-dashboard select,
.admin-dashboard textarea {
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.admin-dashboard input:focus,
.admin-dashboard select:focus,
.admin-dashboard textarea:focus {
  border-color: rgba(96, 165, 250, 0.65);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.14);
  background: rgba(15, 23, 42, 0.92);
}

.admin-dashboard table {
  border-radius: 18px;
  overflow: hidden;
}

.admin-dashboard th {
  color: #cbd5e1;
  font-weight: 700;
}

.admin-dashboard td,
.admin-dashboard th {
  border-color: rgba(255, 255, 255, 0.06) !important;
}

.admin-dashboard ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.admin-dashboard ::-webkit-scrollbar-thumb {
  background: rgba(96, 165, 250, 0.35);
  border-radius: 999px;
}

.admin-dashboard ::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 1100px) {
  .admin-dashboard .sidebar {
    width: 250px;
  }

  .admin-dashboard .main-content {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .admin-dashboard .sidebar {
    width: 100%;
    min-height: auto;
    position: static;
    border-left: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 0 0 20px 20px;
  }

  .admin-dashboard .sidebar ul {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .admin-dashboard .sidebar li {
    text-align: center;
    padding: 0.8rem 0.85rem;
  }

  .admin-dashboard .main-content {
    padding: 1rem !important;
  }

  .admin-dashboard .main-content h1 {
    font-size: 1.6rem;
  }

  .admin-dashboard .stat-card,
  .admin-dashboard .highlight-card {
    border-radius: 16px;
  }
}
