/* =========================
   GOOGLE FONT
========================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* =========================
   CSS VARIABLES
========================= */
:root {

  /* COLORS */
  --primary-color: #1b5e20;
  --primary-dark: #124418;
  --accent-color: #d4af37;
  --accent-dark: #b89328;

  --white: #ffffff;
  --black: #111111;

  --text-color: #333333;
  --text-light: #666666;

  --background-color: #f9f9f9;
  --section-light: #f1f3f5;

  /* SPACING */
  --container-width: 1200px;

  --section-padding: 80px 20px;

  /* SHADOW */
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.12);

  /* BORDER */
  --radius-sm: 8px;
  --radius-md: 14px;

  /* TRANSITION */
  --transition: 0.3s ease;
}

/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   BASE STYLES
========================= */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  background: var(--background-color);
  color: var(--text-color);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

/* =========================
   CONTAINER
========================= */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: auto;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  background: var(--primary-color);

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 14px 20px;

  position: sticky;
  top: 0;
  z-index: 1000;

  box-shadow: var(--shadow-sm);
}

/* LOGO AREA */
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;

  color: var(--white);
}

.logo {
  width: 48px;
  height: 48px;

  object-fit: cover;
  border-radius: 50%;
}

.school-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

/* NAV LINKS */
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

/* NAV HOVER EFFECT */
.nav-links a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -5px;

  width: 0;
  height: 2px;

  background: var(--accent-color);

  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent-color);
}

.nav-links a:hover::after {
  width: 100%;
}

/* MOBILE TOGGLE BUTTON */
.menu-toggle {
  display: none;

  background: transparent;
  border: none;

  color: var(--white);

  font-size: 1.8rem;
  cursor: pointer;
}

/* =========================
   HERO SECTION
========================= */
.hero {
  position: relative;

  min-height: 92vh;

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;
  overflow: hidden;
}

/* SLIDES */
.slides {
  position: absolute;
  inset: 0;
}

/* INDIVIDUAL SLIDE */
.slide {
  position: absolute;
  inset: 0;

  background-size: cover;
  background-position: center;

  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* DARK OVERLAY */
.slide::before,
.video-slide::before {
  content: "";

  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.55);

  z-index: 1;
}

/* VIDEO */
.video-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* HERO CONTENT */
.hero-content {
  position: relative;
  z-index: 2;

  max-width: 800px;
  padding: 20px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--white);

  line-height: 1.2;
  margin-bottom: 18px;
}

.hero-content p {
  font-size: 1.2rem;
  color: #f0f0f0;

  margin-bottom: 24px;
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 28px;

  background: var(--accent-color);
  color: var(--black);

  border-radius: var(--radius-sm);

  font-weight: 700;

  transition: var(--transition);
}

.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* =========================
   SECTIONS
========================= */
.section {
  padding: var(--section-padding);
}

.section-light {
  background: var(--section-light);
}

.section h2 {
  text-align: center;

  font-size: clamp(2rem, 4vw, 2.8rem);

  color: var(--primary-color);

  margin-bottom: 50px;
}

/* =========================
   GRID
========================= */
.grid {
  display: grid;

  grid-template-columns: repeat(
    auto-fit,
    minmax(250px, 1fr)
  );

  gap: 24px;
}

/* =========================
   CARDS
========================= */
.card {
  background: var(--white);

  padding: 30px 24px;

  border-radius: var(--radius-md);

  box-shadow: var(--shadow-sm);

  transition: var(--transition);

  font-weight: 500;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

/* =========================
   UPDATES
========================= */
.updates {
  text-align: center;
}

.updates p {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

/* =========================
   FORMS
========================= */
form {
  max-width: 600px;
  margin: auto;
}

form input,
form select,
form textarea {
  width: 100%;

  padding: 14px;
  margin-bottom: 18px;

  border: 1px solid #cccccc;
  border-radius: var(--radius-sm);

  font-size: 1rem;
  outline: none;

  transition: var(--transition);
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: var(--primary-color);
}

/* =========================
   GALLERY
========================= */
.gallery {
  display: grid;

  grid-template-columns: repeat(
    auto-fit,
    minmax(250px, 1fr)
  );

  gap: 20px;
}

.gallery img {
  border-radius: var(--radius-md);

  height: 250px;
  object-fit: cover;

  transition: var(--transition);
}

.gallery img:hover {
  transform: scale(1.03);
}

/* =========================
   FOOTER
========================= */
.footer {
  background: var(--primary-color);

  color: var(--white);

  text-align: center;

  padding: 30px 20px;
}

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 768px) {

  /* NAVIGATION */
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;

    top: 100%;
    right: 0;

    width: 250px;

    background: var(--primary-color);

    flex-direction: column;
    align-items: flex-start;

    padding: 20px;

    gap: 18px;

    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  /* HERO */
  .hero {
    min-height: 85vh;
  }

  .hero-content h1 {
    font-size: 2.3rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  /* SECTION */
  .section {
    padding: 60px 20px;
  }

  /* SCHOOL NAME */
  .school-name {
    font-size: 0.9rem;
  }

}

/* =========================
   SMALL DEVICES
========================= */
@media (max-width: 480px) {

  .hero-content h1 {
    font-size: 2rem;
  }

  .btn {
    width: 100%;
  }

}

/* ACTIVE PAGE LINK */
.active-link {
  color: var(--accent-color) !important;
}

/* =========================
   PAGE HERO
========================= */
.page-hero {
  min-height: 50vh;
}

/* =========================
   OVERLAY
========================= */
.overlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.82);

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 20px;

  text-align: center;

  z-index: 5000;
}

/* COUNTDOWN BOX */
.countdown-box {
  max-width: 600px;
}

.countdown-box h1 {
  color: var(--white);

  font-size: clamp(2rem, 4vw, 3rem);

  margin-bottom: 20px;
}

#countdown {
  color: var(--accent-color);

  font-size: 1.4rem;
  font-weight: 700;

  margin-bottom: 25px;
}

/* FORM BLUR */
.blur {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

/* ABOUT TEXT */
.about-text {
  max-width: 850px;
  margin: auto;

  text-align: center;
}

.about-text p {
  margin-bottom: 18px;
  color: var(--text-light);
}

/* CARD HEADINGS */
.card h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* =========================
   GALLERY GRID
========================= */
.gallery-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(280px, 1fr));

  gap: 24px;
}

/* =========================
   GALLERY ITEM
========================= */
.gallery-item {
  position: relative;

  overflow: hidden;

  border-radius: var(--radius-md);

  box-shadow: var(--shadow-sm);
}

/* IMAGE */
.gallery-item img {
  width: 100%;
  height: 320px;

  object-fit: cover;

  transition: transform 0.5s ease;
}

/* OVERLAY */
.overlay-text {
  position: absolute;

  bottom: 0;
  left: 0;

  width: 100%;

  background: rgba(0, 0, 0, 0.65);

  color: var(--white);

  padding: 14px;

  text-align: center;

  font-weight: 600;
}

/* HOVER EFFECT */
.gallery-item:hover img {
  transform: scale(1.08);
}

/* =========================
   VIDEO
========================= */
video {
  width: 100%;

  border-radius: var(--radius-sm);

  margin-top: 15px;
}

/* =========================
   IFRAME
========================= */
iframe {
  width: 100%;
  height: 250px;

  border: none;

  border-radius: var(--radius-sm);

  margin-top: 15px;
}

/* =========================
   SECTION DESCRIPTION
========================= */
.section-description {
  text-align: center;

  max-width: 700px;

  margin:
    -20px auto 40px;

  color: var(--text-light);
}

/* =========================
   LOGIN PAGE
========================= */
.login-page {
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  background:
    linear-gradient(
      rgba(0, 0, 0, 0.45),
      rgba(0, 0, 0, 0.45)
    ),
    url('../images/attoreeq2.jpg');

  background-size: cover;
  background-position: center;

  padding: 20px;
}

/* =========================
   LOGIN CONTAINER
========================= */
.login-container {
  width: 100%;
  max-width: 420px;
}

/* =========================
   LOGIN CARD
========================= */
.login-card {
  background: rgba(255, 255, 255, 0.96);

  padding: 40px 30px;

  border-radius: var(--radius-md);

  box-shadow: var(--shadow-md);

  text-align: center;

  backdrop-filter: blur(6px);
}

/* LOGO */
.login-logo {
  width: 75px;
  height: 75px;

  object-fit: cover;

  border-radius: 50%;

  margin:
    0 auto 20px;
}

/* TITLE */
.login-card h1 {
  color: var(--primary-color);

  margin-bottom: 10px;

  font-size: 2rem;
}

/* SUBTITLE */
.login-subtitle {
  color: var(--text-light);

  margin-bottom: 25px;
}

/* LOGIN BUTTON */
.login-btn {
  width: 100%;
}

/* FORGOT PASSWORD */
.forgot-password {
  margin-top: 18px;

  color: var(--text-light);

  font-size: 0.95rem;

  cursor: pointer;

  transition: var(--transition);
}

.forgot-password:hover {
  color: var(--primary-color);
}

/* =========================
   DASHBOARD PAGE
========================= */
.dashboard-page {
  background: #eef2f5;

  min-height: 100vh;
}

/* =========================
   DASHBOARD LAYOUT
========================= */
.dashboard-layout {
  display: flex;

  min-height: 100vh;
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
  width: 270px;

  background: var(--primary-color);

  color: var(--white);

  padding: 30px 20px;

  display: flex;
  flex-direction: column;

  gap: 40px;
}

/* BRAND */
.sidebar-brand {
  text-align: center;
}

.sidebar-logo {
  width: 75px;
  height: 75px;

  object-fit: cover;

  border-radius: 50%;

  margin:
    0 auto 15px;
}

.sidebar-brand h2 {
  font-size: 1.1rem;

  line-height: 1.5;
}

/* NAVIGATION */
.sidebar-nav {
  display: flex;
  flex-direction: column;

  gap: 10px;
}

.sidebar-nav a {
  color: var(--white);

  padding: 12px 15px;

  border-radius: var(--radius-sm);

  transition: var(--transition);

  font-weight: 500;
}

/* HOVER */
.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ACTIVE */
.active-sidebar-link {
  background: rgba(255, 255, 255, 0.16);
}

/* =========================
   MAIN AREA
========================= */
.dashboard-main {
  flex: 1;

  padding: 30px;
}

/* =========================
   DASHBOARD HEADER
========================= */
.dashboard-header {
  display: flex;

  justify-content: space-between;
  align-items: center;

  gap: 20px;

  margin-bottom: 35px;
}

.dashboard-header h1 {
  color: var(--primary-color);

  margin-bottom: 5px;
}

.dashboard-header p {
  color: var(--text-light);
}

/* USER */
.dashboard-user {
  background: var(--white);

  padding: 12px 18px;

  border-radius: var(--radius-sm);

  box-shadow: var(--shadow-sm);
}

/* =========================
   DASHBOARD GRID
========================= */
.dashboard-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(260px, 1fr));

  gap: 24px;
}

/* =========================
   DASHBOARD CARD
========================= */
.dashboard-card {
  background: var(--white);

  padding: 30px 24px;

  border-radius: var(--radius-md);

  box-shadow: var(--shadow-sm);

  transition: var(--transition);
}

.dashboard-card:hover {
  transform: translateY(-6px);

  box-shadow: var(--shadow-md);
}

/* CARD TITLE */
.dashboard-card h3 {
  color: var(--primary-color);

  margin-bottom: 15px;
}

/* CARD TEXT */
.dashboard-card p {
  color: var(--text-light);

  margin-bottom: 20px;
}

/* =========================
   SMALL BUTTON
========================= */
.small-btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 10px 18px;

  background: var(--accent-color);

  color: var(--black);

  border-radius: var(--radius-sm);

  font-weight: 600;

  transition: var(--transition);
}

.small-btn:hover {
  background: var(--accent-dark);

  transform: translateY(-2px);
}

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 900px) {

  .dashboard-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

}

@media (max-width: 600px) {

  .dashboard-main {
    padding: 20px;
  }

  .dashboard-card {
    padding: 24px 20px;
  }

}

/* =========================
   ACADEMIC CARD
========================= */
.academic-card h3 {
  color: var(--primary-color);

  margin-bottom: 15px;
}

.academic-card p {
  color: var(--text-light);

  line-height: 1.8;
}

/* =========================
   SCROLL ANIMATIONS
========================= */
.hidden-element {
  opacity: 0;

  transform: translateY(30px);

  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.show-element {
  opacity: 1;

  transform: translateY(0);
}

/* =========================
   RESULT SEARCH PANEL
========================= */
.result-search-panel {
  background: var(--white);

  padding: 25px;

  border-radius: var(--radius-md);

  box-shadow: var(--shadow-sm);

  margin-bottom: 30px;
}

/* FORM */
.result-search-panel form {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(220px, 1fr));

  gap: 20px;

  align-items: end;
}

/* FORM GROUP */
.form-group {
  display: flex;

  flex-direction: column;
}

/* LABEL */
.form-group label {
  margin-bottom: 8px;

  font-weight: 600;

  color: var(--primary-color);
}

/* =========================
   RESULT CARD
========================= */
.result-card {
  background: var(--white);

  padding: 30px;

  border-radius: var(--radius-md);

  box-shadow: var(--shadow-sm);
}

/* HEADER */
.result-header {
  display: flex;

  justify-content: space-between;
  align-items: center;

  gap: 20px;

  margin-bottom: 30px;
}

/* SUMMARY */
.result-summary {
  display: flex;
  align-items: center;
}

/* GRADE BADGE */
.grade-badge {
  background: var(--accent-color);

  color: var(--black);

  padding: 10px 16px;

  border-radius: 30px;

  font-weight: 700;
}

/* =========================
   TABLE
========================= */
.table-wrapper {
  overflow-x: auto;
}

.result-table {
  width: 100%;

  border-collapse: collapse;
}

/* HEAD */
.result-table thead {
  background: var(--primary-color);

  color: var(--white);
}

/* CELLS */
.result-table th,
.result-table td {
  padding: 16px;

  text-align: left;

  border-bottom:
    1px solid #e5e7eb;
}

/* ROW HOVER */
.result-table tbody tr:hover {
  background: #f8fafc;
}

/* PASS */
.pass {
  color: green;

  font-weight: 600;
}

/* FAIL */
.fail {
  color: red;

  font-weight: 600;
}

/* =========================
   ACTIONS
========================= */
.result-actions {
  margin-top: 25px;

  display: flex;

  justify-content: flex-end;
}

/* =========================
   PRINT STYLE
========================= */
@media print {

  .sidebar,
  .result-search-panel,
  .result-actions {
    display: none;
  }

  .dashboard-main {
    padding: 0;
  }

  .result-card {
    box-shadow: none;
  }

}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

  .result-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .result-card {
    padding: 20px;
  }

}

/* =========================
   STUDENTS FILTER PANEL
========================= */
.students-filter-panel {
  background: var(--white);

  padding: 25px;

  border-radius: var(--radius-md);

  box-shadow: var(--shadow-sm);

  margin-bottom: 30px;
}

/* FILTER FORM */
.students-filter-form {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(220px, 1fr));

  gap: 20px;

  align-items: end;
}

/* =========================
   STUDENTS TABLE CARD
========================= */
.students-table-card {
  background: var(--white);

  padding: 25px;

  border-radius: var(--radius-md);

  box-shadow: var(--shadow-sm);
}

/* TABLE */
.students-table {
  width: 100%;

  border-collapse: collapse;
}

/* TABLE HEAD */
.students-table thead {
  background: var(--primary-color);

  color: var(--white);
}

/* TABLE CELLS */
.students-table th,
.students-table td {
  padding: 16px;

  text-align: left;

  border-bottom:
    1px solid #e5e7eb;
}

/* ROW HOVER */
.students-table tbody tr:hover {
  background: #f8fafc;
}

/* STATUS */
.status {
  display: inline-block;

  padding: 6px 12px;

  border-radius: 30px;

  font-size: 13px;

  font-weight: 600;
}

/* ACTIVE */
.active-status {
  background: rgba(34, 197, 94, 0.15);

  color: green;
}

/* INACTIVE */
.inactive-status {
  background: rgba(239, 68, 68, 0.15);

  color: red;
}

/* ACTIONS */
.table-actions {
  display: flex;

  gap: 10px;

  flex-wrap: wrap;
}

/* SMALL BUTTON */
.small-btn {
  border: none;

  cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {

  .students-table-card {
    padding: 15px;
  }

}

/* =========================
   TEACHERS FILTER PANEL
========================= */
.teachers-filter-panel {
  background: var(--white);

  padding: 25px;

  border-radius: var(--radius-md);

  box-shadow: var(--shadow-sm);

  margin-bottom: 30px;
}

/* FILTER FORM */
.teachers-filter-form {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(220px, 1fr));

  gap: 20px;

  align-items: end;
}

/* =========================
   TEACHERS TABLE CARD
========================= */
.teachers-table-card {
  background: var(--white);

  padding: 25px;

  border-radius: var(--radius-md);

  box-shadow: var(--shadow-sm);

  margin-bottom: 40px;
}

/* TABLE */
.teachers-table {
  width: 100%;

  border-collapse: collapse;
}

/* HEAD */
.teachers-table thead {
  background: var(--primary-color);

  color: var(--white);
}

/* CELLS */
.teachers-table th,
.teachers-table td {
  padding: 16px;

  text-align: left;

  border-bottom:
    1px solid #e5e7eb;
}

/* ROW HOVER */
.teachers-table tbody tr:hover {
  background: #f8fafc;
}

/* STATUS */
.leave-status {
  background:
    rgba(245, 158, 11, 0.15);

  color: #b45309;
}

/* MOBILE */
@media (max-width: 768px) {

  .teachers-table-card {
    padding: 15px;
  }

}

/* =========================
   NOTIFICATION FORM CARD
========================= */
.notification-form-card {
  background: var(--white);

  padding: 30px;

  border-radius: var(--radius-md);

  box-shadow: var(--shadow-sm);

  margin-bottom: 40px;
}

/* FORM */
.notification-form {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(220px, 1fr));

  gap: 20px;

  margin-top: 20px;
}

/* FULL WIDTH */
.full-width {
  grid-column: 1 / -1;
}

/* =========================
   NOTIFICATIONS LIST
========================= */
.notifications-list {
  display: grid;

  gap: 20px;
}

/* CARD */
.notification-card {
  background: var(--white);

  padding: 25px;

  border-radius: var(--radius-md);

  box-shadow: var(--shadow-sm);

  border-left: 5px solid
    var(--primary-color);
}

/* TOP */
.notification-top {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 15px;
}

/* BADGE */
.notification-badge {
  padding: 6px 12px;

  border-radius: 30px;

  font-size: 12px;

  font-weight: 700;
}

/* NORMAL */
.normal-badge {
  background:
    rgba(59, 130, 246, 0.12);

  color: #2563eb;
}

/* IMPORTANT */
.important-badge {
  background:
    rgba(245, 158, 11, 0.15);

  color: #b45309;
}

/* URGENT */
.urgent-badge {
  background:
    rgba(239, 68, 68, 0.15);

  color: #dc2626;
}

/* CARD COLORS */
.important-card {
  border-left-color: #f59e0b;
}

.urgent-card {
  border-left-color: #ef4444;
}

/* TEXT */
.notification-card p {
  margin-top: 10px;

  color: var(--text-light);

  line-height: 1.7;
}

/* MOBILE */
@media (max-width: 768px) {

  .notification-form-card {
    padding: 20px;
  }

  .notification-card {
    padding: 20px;
  }

}