/* =====================================================
   SMK SEKOLAH - MAIN STYLESHEET
   Modern Blue & White Theme
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #7dd3fc;
  --primary-lighter: #e0f2fe;
  --primary-50: #f0f9ff;
  --secondary: #0f172a;
  --accent: #06b6d4;
  --accent-light: #a5f3fc;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-blue: 0 4px 14px rgba(14,165,233,0.25);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-primary);
  color: var(--gray-700);
  background: var(--gray-50);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  color: var(--gray-900);
  line-height: 1.3;
  font-weight: 700;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* =====================================================
   LOADING SCREEN
   ===================================================== */
.loading-screen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ffffff;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-screen .logo-loading {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  animation: pulse-logo 2s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(14,165,233,0.2);
}

.loading-screen .logo-loading img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.loading-screen h2 {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 8px;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

.loading-screen .loading-subtitle {
  color: var(--gray-500);
  font-size: 0.85rem;
  margin-bottom: 30px;
  text-align: center;
}

.loading-bar {
  width: 200px;
  height: 3px;
  background: #e0f2fe;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 40px;
}

.loading-bar-inner {
  width: 0%;
  height: 100%;
  background: var(--primary);
  border-radius: 10px;
  animation: loading-progress 2s ease-in-out forwards;
}

.loading-credit {
  position: absolute;
  bottom: 30px;
  color: var(--gray-400);
  font-size: 0.75rem;
}

.loading-credit a { color: var(--primary); }

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

@keyframes loading-progress {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

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

/* =====================================================
   TOP BAR & NAVBAR
   ===================================================== */
.top-bar {
  background: var(--secondary);
  color: white;
  padding: 8px 0;
  font-size: 0.8rem;
}

.top-bar-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a { color: rgba(255,255,255,0.8); }
.top-bar a:hover { color: var(--primary-light); }

.top-bar .social-links { display: flex; gap: 12px; }
.top-bar .social-links a { font-size: 0.9rem; }

.navbar {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-lg);
}

.navbar-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.navbar-brand .brand-text h1 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.navbar-brand .brand-text span {
  font-size: 0.7rem;
  color: var(--gray-500);
  font-weight: 400;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.navbar-menu > li { position: relative; }

.navbar-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navbar-menu > li > a:hover,
.navbar-menu > li.active > a {
  color: var(--primary);
  background: var(--primary-lighter);
}

.navbar-menu > li > a .arrow {
  font-size: 0.6rem;
  transition: var(--transition);
}

.navbar-menu > li:hover > a .arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  padding: 8px;
  border: 1px solid var(--gray-100);
  z-index: 100;
}

.navbar-menu > li:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background: var(--primary-lighter);
  color: var(--primary);
}

/* Mobile Toggle */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  margin: 5px 0;
  transition: var(--transition);
}

/* =====================================================
   HERO SLIDER
   ===================================================== */
.hero-slider {
  position: relative;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active { opacity: 1; }

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.7) 0%, rgba(14,165,233,0.3) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.slide-content h2 {
  font-size: 3rem;
  color: white;
  font-weight: 900;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
  animation: fadeInUp 0.8s ease-out;
}

.slide-content p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  max-width: 600px;
}

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

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dots .dot.active {
  background: white;
  transform: scale(1.2);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-primary);
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14,165,233,0.35);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.8);
}
.btn-outline:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #16a34a; transform: translateY(-2px); }

.btn-warning { background: var(--warning); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; }

.btn-sm { padding: 8px 16px; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

.btn-white {
  background: white;
  color: var(--primary);
}
.btn-white:hover {
  background: var(--primary-lighter);
  transform: translateY(-2px);
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--white);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.section-header p {
  color: var(--gray-500);
  max-width: 600px;
  margin: 16px auto 0;
  font-size: 1rem;
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}

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

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-img {
  transform: scale(1.03);
}

.card-body {
  padding: 24px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.card-text {
  color: var(--gray-500);
  font-size: 0.9rem;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* =====================================================
   PROFILE SECTION
   ===================================================== */
.profile-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.profile-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.profile-card .profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-light);
  margin: 0 auto 20px;
  display: block;
}

.profile-card h3 {
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 4px;
}

.profile-card .title {
  text-align: center;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.profile-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.8;
}

/* =====================================================
   JURUSAN SECTION
   ===================================================== */
.jurusan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.jurusan-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--gray-100);
  cursor: pointer;
}

.jurusan-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-blue);
  border-color: var(--primary-light);
}

.jurusan-card .icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 30px auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

.jurusan-card .icon-wrapper img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 6px;
}

.jurusan-card h3 {
  font-size: 1.1rem;
  padding: 0 20px;
  margin-bottom: 8px;
}

.jurusan-card p {
  padding: 0 20px 24px;
  color: var(--gray-500);
  font-size: 0.85rem;
}

/* =====================================================
   PENGUMUMAN SECTION
   ===================================================== */
.pengumuman-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.pengumuman-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}

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

.pengumuman-card .cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--gray-100);
}

.pengumuman-card .info {
  padding: 20px;
}

.pengumuman-card .info h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.pengumuman-card .info .date {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* =====================================================
   SWIPER / SLIDER SECTION
   ===================================================== */
.swiper {
  padding-bottom: 50px !important;
}

.swiper-pagination-bullet-active {
  background: var(--primary) !important;
}

.swiper-button-next, .swiper-button-prev {
  color: var(--primary) !important;
}

/* =====================================================
   GURU SLIDER
   ===================================================== */
.guru-card {
  text-align: center;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

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

.guru-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--primary-light);
}

.guru-card h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.guru-card span {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
}

/* =====================================================
   MAP SECTION
   ===================================================== */
.map-section iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

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

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

.footer-brand img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  padding: 4px;
}

.footer-brand h3 {
  color: white;
  font-size: 1.1rem;
}

.footer-brand span {
  font-size: 0.8rem;
  color: var(--primary-light);
}

.footer p {
  font-size: 0.85rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.footer h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

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

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
}

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

.footer-bottom a:hover {
  color: white;
}

/* =====================================================
   WHATSAPP FLOATING
   ===================================================== */
.wa-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  animation: bounce-wa 2s infinite;
}

.wa-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(37,211,102,0.4);
  transition: var(--transition);
}

.wa-float a:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}

.wa-float a svg {
  width: 30px;
  height: 30px;
  fill: white;
}

@keyframes bounce-wa {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* =====================================================
   ADMIN DASHBOARD
   ===================================================== */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 270px;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  overflow-y: auto;
  transition: var(--transition);
}

.sidebar-header {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  padding: 3px;
}

.sidebar-header h3 {
  color: white;
  font-size: 0.9rem;
  line-height: 1.3;
}

.sidebar-header span {
  font-size: 0.7rem;
  color: var(--primary-light);
}

.sidebar-menu {
  padding: 10px 0;
  list-style: none;
}

.sidebar-menu .menu-label {
  padding: 15px 20px 8px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-400);
  font-weight: 600;
}

.sidebar-menu > li > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-menu > li > a:hover,
.sidebar-menu > li.active > a {
  background: rgba(14,165,233,0.15);
  color: white;
  border-left-color: var(--primary);
}

.sidebar-menu > li.active > a {
  background: rgba(14,165,233,0.2);
  font-weight: 600;
}

.sidebar-menu > li > a i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.sidebar-menu > li > a .arrow {
  margin-left: auto;
  font-size: 0.7rem;
  transition: var(--transition);
}

.sidebar-menu > li.open > a .arrow {
  transform: rotate(90deg);
}

.sidebar-submenu {
  list-style: none;
  display: none;
  background: rgba(0,0,0,0.15);
}

.sidebar-menu > li.open > .sidebar-submenu {
  display: block;
}

.sidebar-submenu a {
  display: block;
  padding: 8px 20px 8px 52px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
  position: relative;
}

.sidebar-submenu a::before {
  content: '';
  position: absolute;
  left: 36px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: var(--transition);
}

.sidebar-submenu a:hover,
.sidebar-submenu a.active {
  color: white;
  background: rgba(14,165,233,0.1);
}

.sidebar-submenu a:hover::before,
.sidebar-submenu a.active::before {
  background: var(--primary);
}

/* Main Content */
.main-content {
  margin-left: 270px;
  flex: 1;
  min-height: 100vh;
  background: var(--gray-50);
}

/* Admin Header */
.admin-header {
  background: var(--white);
  padding: 0 30px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-header .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray-500);
}

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

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

.admin-header .user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.admin-header .user-menu:hover {
  background: var(--gray-50);
}

.admin-header .user-menu img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.admin-header .user-menu .user-info {
  text-align: right;
}

.admin-header .user-menu .user-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
}

.admin-header .user-menu .user-info span {
  font-size: 0.7rem;
  color: var(--gray-400);
}

/* Admin Content Area */
.admin-content {
  padding: 30px;
}

/* Dashboard Stats */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

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

.stat-card .stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-card .stat-icon.blue { background: var(--primary-lighter); color: var(--primary); }
.stat-card .stat-icon.green { background: #dcfce7; color: var(--success); }
.stat-card .stat-icon.yellow { background: #fef3c7; color: var(--warning); }
.stat-card .stat-icon.red { background: #fee2e2; color: var(--danger); }
.stat-card .stat-icon.purple { background: #f3e8ff; color: #9333ea; }
.stat-card .stat-icon.cyan { background: #cffafe; color: var(--accent); }

.stat-card .stat-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.stat-card .stat-info p {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* Admin Panel */
.panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  margin-bottom: 24px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
}

.panel-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.panel-body {
  padding: 24px;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
}

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

.table th {
  background: var(--gray-50);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--gray-200);
}

.table td {
  padding: 12px 16px;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

.table tr:hover td {
  background: var(--primary-50);
}

.table .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 20px;
}

.badge-success { background: #dcfce7; color: #16a34a; }
.badge-warning { background: #fef3c7; color: #d97706; }
.badge-danger { background: #fee2e2; color: #dc2626; }
.badge-info { background: #dbeafe; color: #2563eb; }
.badge-primary { background: var(--primary-lighter); color: var(--primary); }

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-family: var(--font-primary);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  background: var(--white);
  color: var(--gray-700);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
}

select.form-control {
  cursor: pointer;
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Flash Messages */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 30px;
  list-style: none;
}

.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.pagination a:hover, .pagination span.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* =====================================================
   TABS
   ===================================================== */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 24px;
}

.tab-link {
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font-primary);
}

.tab-link:hover, .tab-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

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

/* =====================================================
   QR CARD FOR PRINTING
   ===================================================== */
.qr-card {
  width: 340px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--gray-200);
}

.qr-card-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 16px;
  text-align: center;
  color: white;
}

.qr-card-header h4 {
  color: white;
  font-size: 0.85rem;
}

.qr-card-body {
  padding: 20px;
  text-align: center;
}

.qr-card-body img.photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-light);
  margin-bottom: 10px;
}

.qr-card-body h3 { font-size: 1rem; margin-bottom: 4px; }
.qr-card-body p { font-size: 0.8rem; color: var(--gray-500); }

.qr-card-body .qr-code {
  width: 120px;
  height: 120px;
  margin: 16px auto;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .profile-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar-menu { display: none; }
  .navbar-toggle { display: block; }
  
  .navbar-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .navbar-menu.open .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-left: 16px;
  }

  .hero-slider { height: 60vh; min-height: 400px; }
  .slide-content h2 { font-size: 1.8rem; }
  .slide-content p { font-size: 1rem; }
  
  .section { padding: 50px 0; }
  .section-header h2 { font-size: 1.6rem; }
  
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  
  .footer-grid { grid-template-columns: 1fr; }
  
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .admin-content { padding: 16px; }
  .top-bar { display: none; }
}

@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   MODAL STYLES
   ===================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.3s ease-out;
  padding: 24px;
}

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

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

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--secondary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #ef4444;
}

/* Print Styles */
@media print {
  .sidebar, .admin-header, .no-print { display: none !important; }
  .main-content { margin-left: 0 !important; }
  .qr-card { box-shadow: none; border: 1px solid #000; }
}

/* =====================================================
   FRONTEND PAGE CONTENT - improved spacing
   ===================================================== */
.page-content {
  padding: 60px 0 80px;
}
.page-content .container {
  max-width: 1200px;
  padding: 0 32px;
}
@media (max-width: 768px) {
  .page-content { padding: 32px 0 48px; }
  .page-content .container { padding: 0 16px; }
}
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 48px 0;
  margin-bottom: 0;
}
.page-hero h1 {
  font-size: 2rem;
  color: white;
  margin-bottom: 8px;
}
.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
}
.page-hero .container {
  max-width: 1200px;
  padding: 0 32px;
}
.content-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid var(--gray-200);
}
@media (max-width: 768px) {
  .content-card { padding: 20px; }
  .page-hero { padding: 32px 0; }
  .page-hero h1 { font-size: 1.5rem; }
}
