/* ======================================
   Study With Me - Educational Platform
   نظم معلومات الأعمال
   ====================================== */

/* Google Fonts - Cairo for Arabic */
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap");

/* CSS Variables */
:root {
  --primary: #6c63ff;
  --primary-light: #8b83ff;
  --primary-dark: #4a42d4;
  --secondary: #00d2ff;
  --accent: #ff6b6b;
  --accent-warm: #ffb347;
  --bg-dark: #0a0e1a;
  --bg-card: #111827;
  --bg-card-hover: #1a2237;
  --bg-surface: #0f1629;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(108, 99, 255, 0.15);
  --border-hover: rgba(108, 99, 255, 0.4);
  --glass-bg: rgba(17, 24, 39, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(108, 99, 255, 0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --gradient-primary: linear-gradient(135deg, #6c63ff, #00d2ff);
  --gradient-warm: linear-gradient(135deg, #ff6b6b, #ffb347);
  --gradient-hero: linear-gradient(
    135deg,
    #0a0e1a 0%,
    #1a1040 50%,
    #0a0e1a 100%
  );

  /* Year Colors */
  --year1-color: #6c63ff;
  /* --year2-color: #00d2ff; */
  --year2-color: #00ff84;
  /* --year3-color: #ff6b6b; */
  --year3-color: #ff9500;
  /* --year4-color: #ffb347; */
  --year4-color: #ff4747;
}

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: "Cairo", sans-serif;

  font-family: "Cairo", sans-serif;

  background-color: var(--bg-dark);
  color: var(--text-primary);
  direction: rtl;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

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

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

input,
textarea,
select {
  font-family: inherit;
  outline: none;
}

/* ===
   Scrollbar
   === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-dark);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ===
   Background Particles / Decorations
   === */
.bg-decoration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-decoration .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 20s ease-in-out infinite;
}

.bg-decoration .orb-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -10%;
  right: -10%;
  animation-delay: 0s;
}

.bg-decoration .orb-2 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  bottom: -10%;
  left: -10%;
  animation-delay: -7s;
}

.bg-decoration .orb-3 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(30px, -30px) scale(1.05);
  }

  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }

  75% {
    transform: translate(20px, 10px) scale(1.02);
  }
}

/* ===
   Container
   === */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===
   Header / Navbar
   === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-normal);
  background: transparent;

}

.navbar.scrolled {
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
    /* background-color: #00ff84; */
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 800;
}

.navbar-brand .logo-icon {
  width: 42px;
  height: 42px;
  /* background: var(--gradient-primary); */
  
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  /* font-size: 1.3rem; */
  /* box-shadow: 0 0 20px rgba(108, 99, 255, 0.3); */
}
.navbar-brand .logo-icon {
  /* background-color: red; */
  width: 90px;
  height: 90px;
}
.navbar-brand .logo-icon img{
width: 100%;
}

.navbar-brand span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.navbar-links {
  width: 80%;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.navbar-links .links {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
}

@media (max-width: 768px) {
  .navbar-links .links {
    flex-direction: column;
  }
}

.navbar-links a {
  /* padding: 8px 18px; */
  border-radius: var(--radius-sm);
  /* color: var(--text-secondary); */
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
  text-align: center;
  padding: 5px 10px;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--text-primary);
  background: rgba(108, 99, 255, 0.1);
  padding: 5px 10px;
}

.navbar-links a.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 50%;
  transform: translateX(50%);
  width: 20px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.btn-admin {
  padding: 8px 20px;
  background: var(--gradient-primary);

  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-normal);
  box-shadow: 0 0 15px rgba(108, 99, 255, 0.3);

  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-admin:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(108, 99, 255, 0.5);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  padding: 8px;
}

/* ===
   Hero Section
   === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  background: var(--gradient-hero);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(108, 99, 255, 0.15);
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--primary-light);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease;
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;

  background: #4ade80;

  background: #4ade80;

  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-bottom: 48px;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===
   Year Cards - Main Page
   === */
.years-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

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

.year-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.year-card::before {
  content: "";

  content: "";

  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-color);
  transition: var(--transition-normal);
}

.year-card:hover {
  transform: translateY(-8px);
  border-color: var(--card-color);

  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.3),
    0 0 30px color-mix(in srgb, var(--card-color) 20%, transparent);

  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.3),
    0 0 30px color-mix(in srgb, var(--card-color) 20%, transparent);
}

.year-card:hover::before {
  height: 6px;
}

.year-card .year-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  background: color-mix(in srgb, var(--card-color) 15%, transparent);
  color: var(--card-color);
  transition: var(--transition-normal);
}

.year-card:hover .year-icon {
  transform: scale(1.1) rotate(-5deg);
}

.year-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.year-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.year-card .card-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.year-card .card-stat {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.year-card .card-stat .count {
  font-weight: 700;
  color: var(--text-primary);
}

/* Year-specific colors */
.year-card[data-year="1"] {
  --card-color: var(--year1-color);
}

.year-card[data-year="2"] {
  --card-color: var(--year2-color);
}

.year-card[data-year="3"] {
  --card-color: var(--year3-color);
}

.year-card[data-year="4"] {
  --card-color: var(--year4-color);
}

/* ===
   Year Page Styles
   === */
.year-page-header {
  padding: 120px 0 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.year-page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.year-page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Tabs */
.tabs-container {
  position: sticky;
  top: 68px;
  z-index: 100;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 40px;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 28px;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(108, 99, 255, 0.1);
}

.tab-btn.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.3);
}

.tab-btn .tab-count {
  width: 34px;
  aspect-ratio: 1/1;
  background: rgba(255, 255, 255, 0.2);
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tab-btn.active .tab-count {
  background: rgba(255, 255, 255, 0.25);
}

/* Tab Content */
.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
  min-height: 400px;
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
}

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

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===
   Video Cards
   === */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.video-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-surface);
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(108, 99, 255, 0.9);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 1.3rem;
  color: white;
  transition: var(--transition-normal);
  box-shadow: 0 0 30px rgba(108, 99, 255, 0.4);
  opacity: 0;
}
.video-play-btn span {
  display: block;
  transform: translateX(2px);
}

.video-card:hover .video-play-btn {
  opacity: 1;
}

.video-info {
  padding: 20px;
}

.video-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.5;
}

.video-info .video-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.video-info .subject-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(108, 99, 255, 0.15);
  color: var(--primary-light);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* ===
   PDF Cards
   === */
.pdf-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition-normal);
}

.pdf-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.pdf-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: rgba(255, 107, 107, 0.15);
  color: var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition-normal);
}

.pdf-card:hover .pdf-icon {
  transform: scale(1.1);
}

.pdf-info {
  flex: 1;
}
/* .pdf-info img {
} */

.pdf-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pdf-info .pdf-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pdf-download-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: rgba(108, 99, 255, 0.15);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-normal);
  padding: 10px;
}

.pdf-download-btn:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

/* ===
   Post Cards
   === */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition-normal);
}

.post-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

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

.post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
}

.post-author-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.post-author-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
  white-space: pre-wrap;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-tag {
  padding: 4px 12px;
  background: rgba(108, 99, 255, 0.1);
  color: var(--primary-light);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ===
   Empty State
   === */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.4;
}

.empty-state h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===
   Admin Panel
   === */
.admin-page {
  padding: 100px 0 60px;
  position: relative;
  z-index: 1;
}

.admin-header {
  text-align: center;
  margin-bottom: 48px;
}

.admin-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.admin-header p {
  color: var(--text-secondary);
}

.admin-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}

/* Admin Sidebar */
.admin-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: 100px;
}

.admin-sidebar h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.admin-nav-item {
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: right;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.admin-nav-item:hover {
  background: rgba(108, 99, 255, 0.1);
  color: var(--text-primary);
}

.admin-nav-item.active {
  background: rgba(108, 99, 255, 0.15);
  color: var(--primary-light);
}

/* Admin Forms */
.admin-form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.admin-form-panel h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  direction: rtl;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.form-control::placeholder {
  color: var(--text-muted);
}

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

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394A3B8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  padding-left: 40px;
}

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

.btn-submit {
  padding: 12px 32px;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition-normal);
  box-shadow: 0 0 15px rgba(108, 99, 255, 0.3);
  width: 100%;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(108, 99, 255, 0.5);
}

.btn-danger {
  padding: 8px 16px;
  background: rgba(255, 107, 107, 0.15);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.btn-danger:hover {
  background: rgba(255, 107, 107, 0.3);
}

/* Existing Items List */
.existing-items {
  margin-top: 32px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.existing-items h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.existing-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}
@media (max-width: 768px) {
  .existing-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

.existing-item:hover {
  border-color: var(--border-hover);
}

.existing-item .item-info {
  flex: 1;
}

.existing-item .item-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.existing-item .item-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.existing-item .item-actions {
  display: flex;
  gap: 8px;
  margin: 15px 0;
}

/* ===
   Toast Notifications
   === */
.toast-container {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 14px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);

  animation:
    toastIn 0.4s ease,
    toastOut 0.4s ease 2.5s forwards;

  animation:
    toastIn 0.4s ease,
    toastOut 0.4s ease 2.5s forwards;

  pointer-events: auto;
}

.toast.success {
  border-color: #4ade80;

  border-color: #4ade80;
}

.toast.error {
  border-color: var(--accent);
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* ===
   Footer
   === */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 40px 0 24px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-brand .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-charity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 50px;

  color: #4ade80;

  color: #4ade80;

  font-size: 0.85rem;
  font-weight: 600;
}

/* ===
   Animations
   === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease both;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

/* ===
   Responsive Design
   === */
@media (max-width: 1024px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
  }

  .admin-sidebar h3 {
    width: 100%;
    margin-bottom: 8px;
  }

  .admin-nav-item {
    width: auto;
    padding: 10px 16px;
  }
}

@media (max-width: 1050px) {
  html {
    font-size: 15px;
  }

  .navbar-links {
    width: 100%;

    display: none;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    z-index: 999;
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar-links a {
    font-size: 1.2rem;

    padding: 12px 24px;
  }
  .navbar-links a:hover {
    padding: 12px 24px;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 1001;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* .hero-stats {
     gap: 24px; 
  } */

  /* .stat-number {
     font-size: 1.6rem; 
  } */

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

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

  .tabs {
    gap: 4px;
    padding: 0 8px;
  }

  .tab-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }

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

  .pdf-card {
    flex-direction: column;
    text-align: center;
  }

  .pdf-info .pdf-meta {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  /* .hero-stats {
    flex-direction: column;
    gap: 16px;
  } */

  .container {
    padding: 0 16px;
  }

  .year-card {
    padding: 24px;
  }

  .admin-form-panel {
    padding: 20px;
  }
}

/* ===
   Admin Panel Hidden Sections
   === */
.admin-section {
  display: none;
}

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

/* ===
   Breadcrumb
   === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 110px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.breadcrumb a {
  color: var(--primary-light);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .separator {
  color: var(--text-muted);
}

/* ===
   Search Bar
   === */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto 40px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  transition: var(--transition-fast);
}

.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  direction: rtl;
}

.search-bar .search-icon {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ===
   Disclaimer Notice
   === */
.disclaimer-notice {
  position: relative;
  z-index: 1;
  padding: 20px 0;
  background: rgba(255, 107, 107, 0.06);
  border-top: 1px solid rgba(255, 107, 107, 0.2);
  border-bottom: 1px solid rgba(255, 107, 107, 0.2);
}

.disclaimer-notice p {
  font-size: 0.82rem;
  color: var(--accent);
  text-align: center;
  line-height: 1.9;
  max-width: 900px;
  margin: 0 auto;
}

.disclaimer-notice strong {
  font-weight: 800;
}

.disclaimer-emphasis {
  font-size: 1.05rem;
  font-weight: 800;
}

/* Navbar Policy Link - Red */
.nav-policy-link {
  color: var(--accent);
  font-weight: 600;
}

.nav-policy-link:hover,
.nav-policy-link.active {
  color: #ff4a4a;
  background: rgba(255, 107, 107, 0.1);
}

/* Footer Policy Link - Red */
.footer-policy-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
  transition: var(--transition-fast);
}

.footer-policy-link:hover {
  color: #ff4a4a;
}

/* ===
   Subjects Cards
   === */
.subjects-wrapper {
  margin-bottom: 40px;
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.subject-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.subject-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.subject-card:hover,
.subject-card.active {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(108, 99, 255, 0.25);
}

.subject-card:hover h4,
.subject-card.active h4 {
  color: #fff;
}

/* Fix mobile menu background filtering */
.navbar.menu-open {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(10, 14, 26, 0.98);
}

@media (max-width: 768px) {
  .navbar-links {
    width: 100%;
    height: 100vh;
  }
}

.footer-dev-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary);
  font-weight: 600;
  margin-top: 8px;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-dev-link:hover {
  color: white;
  transform: translateY(-2px);
}

/* ===
   Scroll To Top Button
   === */
#scroll-to-top-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: none;
}

#scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scroll-to-top-btn:hover {
  box-shadow: 0 6px 30px rgba(108, 99, 255, 0.6);
  transform: translateY(-3px);
}

#scroll-to-top-btn:active {
  transform: translateY(0);
}
