@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   DESIGN TOKENS & ROOT VARIABLES - SMA NEGERI 2 BATANG
   ========================================================================== */
:root {
  --font-heading: 'Poppins', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Colors from SMAN 2 Batang Brand Guidelines */
  --bg-primary: #F4F6F8;     /* Light Gray background */
  --bg-card: #ffffff;
  --text-dark: #333333;     /* Dark Gray text */
  --text-medium: #475569;
  --text-light: #64748b;
  --border-color: #e2e8f0;

  /* Brand Palette */
  --primary-color: #0D2B45;   /* Primary: Navy */
  --primary-light: #e8ecef;   /* Light Navy tint */
  --primary-dark: #07192a;
  --primary-rgb: 13, 43, 69;

  --secondary-color: #00B7E5; /* Secondary: Cyan */
  --secondary-light: #e0f7fc; /* Light Cyan tint */
  --secondary-dark: #0096bc;

  --success-color: #11823B;   /* Accent: Green */
  --success-light: #eefaf0;   /* Light Green tint */
  --success-dark: #0a5c28;

  --highlight-color: #FFD600; /* Highlight: Yellow */
  --highlight-light: #fffae0; /* Light Yellow tint */

  /* Standard accents for other areas */
  --purple-color: #8b5cf6;
  --purple-light: #f5f3ff;
  --pink-color: #ec4899;
  --pink-light: #fdf2f8;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-premium: 0 20px 25px -5px rgba(13, 43, 69, 0.04), 0 8px 10px -6px rgba(13, 43, 69, 0.04);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Layout */
  --max-width: 1280px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-dark);
  line-height: 1.5;
  padding-bottom: 4rem;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

/* ==========================================================================
   NAVIGATION BAR (Navy blue background matching Section 5 and 8)
   ========================================================================== */
.navbar {
  background-color: var(--primary-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 2rem;
  transition: var(--transition);
}

.navbar-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff; /* White text for navy background */
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.brand-text span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--secondary-color); /* Cyan subtitle */
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8); /* Translucent white links */
  padding: 0.5rem 0;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.active {
  color: #ffffff;
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--success-color); /* Accent: Green underline */
  border-radius: 2px;
}

.mobile-search,
.mobile-login {
  display: none; /* hidden on desktop */
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-container {
  position: relative;
  width: 240px;
}

.search-input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.15); /* Translucent input */
  padding: 0.625rem 1rem 0.625rem 2.5rem;
  border-radius: 50px;
  font-size: 0.875rem;
  color: #ffffff;
  border: 1.5px solid transparent;
  transition: var(--transition);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: var(--secondary-color); /* Cyan border on focus */
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.login-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--secondary-color); /* Cyan filled button */
  color: #ffffff;
  padding: 0.625rem 1.25rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition);
}

.login-btn:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-1px);
}

.login-btn svg {
  width: 16px;
  height: 16px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #ffffff; /* White menu lines */
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================================================
   MAIN LAYOUT & CONTAINERS
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-banner {
  background: linear-gradient(135deg, #ffffff 0%, #edf4f8 100%); /* Soft navy-grey gradient */
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-premium);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  overflow: hidden;
  padding: 3.5rem;
  gap: 3rem;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-title h2 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color); /* Navy Title */
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-title span {
  color: var(--secondary-color); /* Cyan Highlight */
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-medium);
  line-height: 1.6;
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color); /* Button Primary: Navy */
  color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(13, 43, 69, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(13, 43, 69, 0.3);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--secondary-color); /* Button Outline: Cyan border and text */
  border: 1.5px solid var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-light);
  transform: translateY(-2px);
}

.hero-disclaimer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-light);
}

.hero-disclaimer svg {
  width: 14px;
  height: 14px;
}

.hero-illustration-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-illustration {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(13, 43, 69, 0.08));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* ==========================================================================
   STATISTICS ROW (Mapped to SMAN 2 Batang Brand Guidelines Section 7)
   ========================================================================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 183, 229, 0.2); /* Cyan border highlight */
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Icon style based on visual style guidelines (Navy, Green, Yellow, Cyan) */
.stat-icon.blue { background-color: var(--primary-light); color: var(--primary-color); }       /* Profesional (Navy) */
.stat-icon.green { background-color: var(--success-light); color: var(--success-color); }      /* Bersahabat (Green) */
.stat-icon.orange { background-color: var(--highlight-light); color: #b79500; }                /* Inspiratif (Yellow/Gold) */
.stat-icon.purple { background-color: var(--secondary-light); color: var(--secondary-color); } /* Cyan secondary */

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-dark);
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-medium);
  margin-top: 0.1rem;
}

.stat-desc {
  font-size: 0.7rem;
  color: var(--text-light);
}

/* ==========================================================================
   MAIN DASHBOARD GRID
   ========================================================================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* ==========================================================================
   LEFT COLUMN - FOKUS KURIKULUM
   ========================================================================== */
.fokus-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.fokus-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
}

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

.fokus-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem;
}

.fokus-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fokus-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fokus-icon.blue { background-color: var(--primary-light); color: var(--primary-color); }
.fokus-icon.green { background-color: var(--success-light); color: var(--success-color); }
.fokus-icon.pink { background-color: var(--pink-light); color: var(--pink-color); }
.fokus-icon.orange { background-color: var(--highlight-light); color: #b79500; }

.fokus-item-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

.fokus-item-desc {
  font-size: 0.8rem;
  color: var(--text-medium);
  line-height: 1.5;
}

.fokus-footer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem;
  background-color: var(--secondary-light); /* Cyan light background */
  color: var(--secondary-dark);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
}

.fokus-footer-btn:hover {
  background-color: var(--secondary-color);
  color: #ffffff;
  transform: translateY(-1px);
}

.fokus-footer-btn svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   RIGHT COLUMN - INFORMASI TERBARU
   ========================================================================== */
.info-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
}

.info-btn-all {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-medium);
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  background-color: #f1f5f9;
  cursor: pointer;
  transition: var(--transition);
}

.info-btn-all:hover {
  background-color: var(--secondary-light);
  color: var(--secondary-color);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  gap: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.info-item:hover {
  background-color: #f8fafc;
  border-color: var(--secondary-light);
  transform: translateX(4px);
}

.info-item-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-item-icon.blue { background-color: var(--primary-light); color: var(--primary-color); }
.info-item-icon.purple { background-color: var(--secondary-light); color: var(--secondary-color); }
.info-item-icon.green { background-color: var(--success-light); color: var(--success-color); }
.info-item-icon.orange { background-color: var(--highlight-light); color: #b79500; }

.info-item-content {
  display: flex;
  flex-direction: column;
}

.info-item-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
}

.info-item-desc {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.1rem;
}

.info-item-date {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-light);
  white-space: nowrap;
}

/* ==========================================================================
   QUICK ACCESS ROW
   ========================================================================== */
.quick-access-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.quick-access-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  flex-shrink: 0;
}

.quick-access-list {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  width: 100%;
  padding: 0.25rem 0;
  scrollbar-width: none;
}

.quick-access-list::-webkit-scrollbar {
  display: none;
}

.quick-access-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background-color: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-medium);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.quick-access-btn:hover {
  border-color: var(--secondary-color);
  background-color: var(--secondary-light);
  color: var(--secondary-color);
  transform: translateY(-1px);
}

.quick-access-btn svg {
  width: 16px;
  height: 16px;
  color: var(--secondary-color);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-disclaimer {
  max-width: var(--max-width);
  margin: 1rem auto 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.8rem;
  text-align: center;
}

.footer-disclaimer svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1200px) {
  .hero-banner {
    grid-template-columns: 1.2fr 1fr;
    padding: 2.5rem;
    gap: 2rem;
  }
  
  .hero-illustration {
    max-height: 220px;
  }

  .stats-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .navbar {
    padding: 1rem;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-actions {
    display: none;
  }
  
  .nav-menu .search-container {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .nav-menu .login-btn {
    justify-content: center;
    width: 100%;
  }

  .nav-menu .nav-link {
    padding: 0.75rem 1rem;
    display: block;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.8);
  }

  .nav-menu .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }

  .nav-menu .nav-link.active::after {
    left: 1rem;
    right: 1rem;
    bottom: 0;
  }

  .mobile-search,
  .mobile-login {
    display: block !important;
  }

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

  .hero-banner {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .hero-illustration-container {
    display: none;
  }
}

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

  .quick-access-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .container {
    padding: 0 1rem;
    margin: 1rem auto;
  }
}

@media (max-width: 576px) {
  .fokus-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .info-item {
    grid-template-columns: auto 1fr;
  }

  .info-item-date {
    grid-column: 2;
    margin-top: 0.1rem;
    text-align: left;
  }
}

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

  .hero-title h2 {
    font-size: 2.25rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn {
    justify-content: center;
  }
}
