/* Global Design System Variables */
:root {
  --primary-color: #38bdf8;
  /* Happy Sky Blue */
  --secondary-color: #4ade80;
  /* Playful Grass Green */
  --accent-color: #fb923c;
  /* Sun Orange */
  --success-color: #2bc06a;
  /* Friendly Green */
  --danger-color: #f87171;
  /* Bubblegum Red */
  --bg-gradient: linear-gradient(135deg, #e0f2fe 0%, #f0fdf4 40%, #fef9c3 100%);
  --admin-bg-gradient: linear-gradient(135deg, #0284c7 0%, #16a34a 100%);
  --card-shadow: 0 12px 32px -8px rgba(56, 189, 248, 0.25), 0 4px 12px rgba(74, 222, 128, 0.15);
  --kids-font: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-headings: 'Outfit', 'Inter', system-ui, sans-serif;
  --text-dark: #1e293b;
  --text-muted: #475569;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--kids-font);
  color: var(--text-dark);
  background: var(--bg-gradient);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headings);
}

/* Header & Navbar */
.school-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  box-shadow: 0 4px 30px rgba(56, 189, 248, 0.08);
  border-bottom: 2px solid rgba(56, 189, 248, 0.2);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.03);
}

.logo-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.3));
}

.logo-emoji img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.1;
  font-family: var(--font-headings);
}

.brand-sub {
  font-size: 0.9rem;
  color: var(--accent-color);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: bold;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  background: #e0f2fe;
  color: var(--primary-color);
}

/* Buttons with Kids Images */
.apply-now-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-color);
  color: #fff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 25px;
  font-family: var(--kids-font);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  box-shadow: 0 4px 12px rgba(251, 146, 60, 0.3);
  border: 2px solid #fff;
}

.apply-now-nav-btn:hover {
  transform: translateY(-2px);
  background: #ea580c;
  box-shadow: 0 6px 16px rgba(251, 146, 60, 0.4);
}

.admin-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--secondary-color);
  color: #fff;
  border: 2px solid #fff;
  padding: 8px 18px;
  border-radius: 25px;
  font-family: var(--kids-font);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
}

.admin-toggle-btn:hover {
  transform: translateY(-2px);
  background: #27272a;
  box-shadow: 0 6px 16px rgba(24, 24, 27, 0.35);
}

.btn-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  background-color: #f0f4f8;
}

/* Premium Glowing Decorative Elements */
.cloud-bg-element {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  z-index: -1;
  pointer-events: none;
}

.cloud-1 {
  width: 450px;
  height: 450px;
  top: 10%;
  left: -100px;
  background: radial-gradient(circle, var(--primary-color) 0%, rgba(255, 255, 255, 0) 70%);
  animation: floatCloud 25s infinite linear;
}

.cloud-2 {
  width: 550px;
  height: 550px;
  top: 40%;
  right: -150px;
  background: radial-gradient(circle, var(--accent-color) 0%, rgba(255, 255, 255, 0) 70%);
  animation: floatCloudReverse 35s infinite linear;
}

.cloud-3 {
  width: 350px;
  height: 350px;
  top: 75%;
  left: 15%;
  background: radial-gradient(circle, var(--primary-color) 0%, rgba(255, 255, 255, 0) 70%);
  animation: floatCloud 30s infinite linear;
}

@keyframes floatCloud {
  0% {
    transform: translate(0px, 0px) scale(1);
  }

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

  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

@keyframes floatCloudReverse {
  0% {
    transform: translate(0px, 0px) scale(1);
  }

  50% {
    transform: translate(-60px, -30px) scale(1.08);
  }

  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

/* Hero Section */
.hero-section {
  width: 100%;
  padding: 60px 20px;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  background-image: linear-gradient(to right, rgba(224, 242, 254, 0.9) 0%, rgba(240, 253, 244, 0.75) 50%, rgba(254, 249, 195, 0.6) 100%), url('assets/rainbow_lake_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 4px dashed var(--secondary-color);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  background: #ffe4e6;
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.95rem;
  border: 1px solid rgba(230, 57, 70, 0.2);
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-btn {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 40px;
  font-weight: 800;
  font-size: 1.15rem;
  border: 3px solid #fff;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.25);
  position: relative;
  overflow: hidden;
}

.hero-btn.primary-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0284c7 100%);
  color: #fff;
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.4);
}

.hero-btn.primary-btn:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 16px 30px rgba(56, 189, 248, 0.55);
}

.hero-btn.secondary-btn {
  background: linear-gradient(135deg, var(--accent-color) 0%, #ea580c 100%);
  color: #fff;
  box-shadow: 0 10px 25px rgba(251, 146, 60, 0.4);
}

.hero-btn.secondary-btn:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 16px 30px rgba(251, 146, 60, 0.55);
}

.hero-btn .btn-avatar-img {
  width: 34px;
  height: 34px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* Hero Illustration */
.hero-image-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sun-element {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 110px;
  height: 110px;
  background: transparent;
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.3);
  z-index: 4;
  animation: shine 6s infinite alternate;
}

@keyframes shine {
  0% {
    transform: scale(1);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
  }

  100% {
    transform: scale(1.08);
    box-shadow: 0 0 45px rgba(255, 255, 255, 0.7);
  }
}

/* Dancing Alphabets & Numbers */
.dancing-letters-container {
  position: absolute;
  top: -70px;
  left: -20px;
  right: -20px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 5;
}

.dancing-letter {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  display: inline-block;
  text-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
  -webkit-text-stroke: 2px #fff;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.08));
}

.letter-a {
  color: #f87171;
  animation: bubbleJump 1.8s infinite ease-in-out;
}

.letter-b {
  color: #38bdf8;
  animation: bubbleSpin 2.2s infinite ease-in-out 0.2s;
}

.letter-c {
  color: #fbbf24;
  animation: bubbleSwing 2s infinite ease-in-out 0.4s;
}

.letter-d {
  color: #4ade80;
  animation: bubbleJump 2s infinite ease-in-out 0.6s;
}

.letter-e {
  color: #c084fc;
  animation: bubbleSpin 1.9s infinite ease-in-out 0.8s;
}

.letter-f {
  color: #fb923c;
  animation: bubbleSwing 2.3s infinite ease-in-out 1s;
}

@keyframes bubbleJump {

  0%,
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }

  50% {
    transform: translateY(-30px) scale(1.15) rotate(15deg);
  }
}

@keyframes bubbleSpin {

  0%,
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) scale(1.2) rotate(180deg);
  }
}

@keyframes bubbleSwing {

  0%,
  100% {
    transform: translateY(0) rotate(-20deg);
  }

  50% {
    transform: translateY(-20px) rotate(20deg);
  }
}

/* Floating Balloon Decorator */
.floating-balloon-decorator {
  position: absolute;
  font-size: 3.5rem;
  top: 40px;
  left: -60px;
  z-index: 5;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
  animation: floatBalloon 6s infinite ease-in-out;
  pointer-events: none;
}

@keyframes floatBalloon {

  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }

  50% {
    transform: translateY(-25px) rotate(10deg);
  }
}

/* Wobble and Bouncy Keyframes for Cards Icons */
.facility-item:hover .facility-icon {
  animation: wobbleIcon 0.6s ease-in-out;
}

.program-card:hover .card-icon-wrapper {
  animation: rubberBand 0.8s ease-in-out;
}

@keyframes wobbleIcon {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-15deg) scale(1.1);
  }

  75% {
    transform: rotate(15deg) scale(1.1);
  }
}

@keyframes rubberBand {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scaleX(1.25) scaleY(0.75);
  }

  40% {
    transform: scaleX(0.75) scaleY(1.25);
  }

  50% {
    transform: scaleX(1.15) scaleY(0.85);
  }

  65% {
    transform: scaleX(0.95) scaleY(1.05);
  }

  75% {
    transform: scaleX(1.05) scaleY(0.95);
  }

  100% {
    transform: scale(1);
  }
}

.hero-illustration-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border-radius: 30px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 2;
  transform: rotate(2deg);
  transition: transform 0.5s ease;
}

.hero-illustration-card:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-main-illustration {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 15px;
}

.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 3;
}

.badge-1 {
  top: 20px;
  left: -30px;
  border: 1px solid rgba(230, 57, 70, 0.3);
  animation: bounceSoft 3s infinite;
}

.badge-2 {
  bottom: 50px;
  right: -40px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  animation: bounceSoft 3.5s infinite 0.5s;
}

.badge-3 {
  top: 60%;
  left: -40px;
  border: 1px solid rgba(241, 90, 36, 0.3);
  animation: bounceSoft 4s infinite 1s;
}

@keyframes bounceSoft {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Sections Global Headers */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
  padding: 0 20px;
}

.section-tag {
  color: var(--primary-color);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.5;
}

/* ============================================
   Photo Gallery Carousel Section
   ============================================ */
.gallery-carousel-section {
  padding: 70px 20px 60px;
  background: linear-gradient(180deg, #e0f2fe 0%, #f0fdf4 100%);
  overflow: hidden;
  position: relative;
}

.gallery-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

/* Carousel wrapper with overflow clipping */
.carousel-wrapper {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(56, 189, 248, 0.18), 0 6px 20px rgba(74, 222, 128, 0.1);
}

/* Continuously scrolling track */
.carousel-track {
  display: flex;
  gap: 20px;
  padding: 0 10px;
  animation: carouselScroll 28s linear infinite;
  will-change: transform;
  cursor: grab;
}

.carousel-track:active {
  cursor: grabbing;
}

.carousel-track.paused {
  animation-play-state: paused;
}

@keyframes carouselScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Individual slide */
.carousel-slide {
  flex: 0 0 340px;
  height: 240px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.1), box-shadow 0.35s ease;
  background: #fff;
}

.carousel-slide:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.3);
  z-index: 2;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.carousel-slide:hover img {
  transform: scale(1.06);
}

/* Caption overlay */
.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.72) 0%, transparent 100%);
  color: #fff;
  padding: 30px 18px 14px;
  font-weight: 700;
  font-size: 0.92rem;
  font-family: var(--kids-font);
  letter-spacing: 0.3px;
  transform: translateY(0);
  transition: background 0.3s ease;
}

/* Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(56, 189, 248, 0.3);
  color: var(--primary-color);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.2);
}

.carousel-btn:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.4);
}

.carousel-btn-prev {
  left: 14px;
}

.carousel-btn-next {
  right: 14px;
}

/* Dot Indicators */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.dot.active,
.dot:hover {
  background: var(--primary-color);
  transform: scale(1.3);
  border-color: rgba(56, 189, 248, 0.4);
}

/* Programs / Classes Section */
.programs-section {
  padding: 80px 20px;
  background: #ffffff;
  border-radius: 50px 50px 0 0;
  border-top: 1px solid rgba(230, 57, 70, 0.1);
}

.programs-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.program-card {
  background: #ffffff;
  border-radius: 30px;
  padding: 40px 30px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 35px rgba(230, 57, 70, 0.08);
}

.play-school-card {
  border-top: 4px solid var(--primary-color);
}

.lower-primary-card {
  border-top: 4px solid var(--secondary-color);
}

.upper-primary-card {
  border-top: 4px solid var(--accent-color);
}

.card-icon-wrapper {
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-block;
  padding: 15px;
  background: #f7fafc;
  border-radius: 50%;
  width: 90px;
  height: 90px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.play-school-card .card-icon-wrapper {
  background: #e0f2fe;
}

.lower-primary-card .card-icon-wrapper {
  background: #f0fdf4;
}

.upper-primary-card .card-icon-wrapper {
  background: #fef9c3;
}

.program-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.age-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.play-school-card .age-badge {
  background: #e0f2fe;
  color: #0284c7;
}

.lower-primary-card .age-badge {
  background: #dcfce7;
  color: #16a34a;
}

.upper-primary-card .age-badge {
  background: #fef9c3;
  color: #ea580c;
}

.program-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.program-highlights {
  list-style: none;
  text-align: left;
  background: #fafafa;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.program-highlights li {
  margin-bottom: 10px;
  font-weight: 600;
  color: #3f3f46;
  font-size: 0.9rem;
}

.program-highlights li:last-child {
  margin-bottom: 0;
}

/* Facilities Section */
.facilities-section {
  padding: 80px 20px;
  background: #fafafa;
  border-radius: 0 0 50px 50px;
  border-bottom: 1px solid rgba(24, 24, 27, 0.05);
}

.facilities-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.facility-item {
  background: #fff;
  border-radius: 25px;
  padding: 30px 25px;
  text-align: center;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facility-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(230, 57, 70, 0.08);
}

.facility-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 15px;
}

.facility-item h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.facility-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Admissions / Registration Section */
.admission-section {
  padding: 90px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.admission-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.admission-info h2 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.admission-info p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

.steps-info-card {
  background: #fff;
  border-radius: 25px;
  padding: 30px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-left: 6px solid var(--primary-color);
}

.steps-info-card h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.step-line-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.step-line-item:last-child {
  margin-bottom: 0;
}

.step-number {
  background: #ffe4e6;
  color: var(--primary-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  border: 1px solid rgba(230, 57, 70, 0.1);
}

.step-line-item strong {
  display: block;
  font-size: 1rem;
  color: var(--secondary-color);
}

.step-line-item p {
  font-size: 0.85rem;
  margin: 2px 0 0;
}

/* Admissions Form Box */
.admission-form-wrapper {
  background: #fff;
  border-radius: 35px;
  padding: 40px;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-top: 6px solid var(--primary-color);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
  position: relative;
  min-height: 480px;
}

.admission-form-wrapper h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.form-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.form-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 35px;
  position: relative;
}

.form-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: #e2e8f0;
  z-index: 1;
  transform: translateY(-50%);
}

.progress-step {
  background: #fff;
  border: 3px solid #e2e8f0;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.progress-step.active {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: #ffe4e6;
}

.form-step-pane {
  display: none;
}

.form-step-pane.active {
  display: block;
}

/* Input Styles */
.input-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.input-group label {
  font-weight: 700;
  font-size: 0.9rem;
  color: #4a5568;
  margin-bottom: 8px;
}

.input-group input,
.input-group select,
.input-group textarea {
  border: 2px solid #e2e8f0;
  border-radius: 15px;
  padding: 12px 16px;
  font-family: var(--kids-font);
  font-size: 0.95rem;
  color: var(--secondary-color);
  outline: none;
  background: #fafafc;
  transition: all 0.3s ease;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: var(--primary-color);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

/* Multi-step Button Styling */
.form-navigation-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  align-items: center;
}

.form-nav-btn {
  background: #edf2f7;
  color: #4a5568;
  border: none;
  padding: 10px 22px;
  border-radius: 25px;
  font-family: var(--kids-font);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.form-nav-btn:hover {
  background: #e2e8f0;
}

.form-nav-btn.next-step-btn {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 10px rgba(230, 57, 70, 0.2);
}

.form-nav-btn.next-step-btn:hover {
  background: #d62828;
  transform: translateY(-2px);
}

.form-nav-btn.submit-application-btn {
  background: var(--success-color);
  color: #fff;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.form-nav-btn.submit-application-btn:hover {
  background: #059669;
  transform: translateY(-2px);
}

/* Success Card */
.form-success-card {
  text-align: center;
  padding: 30px 10px;
}

.success-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 20px;
  animation: bounceSoft 2s infinite;
}

.form-success-card h4 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--success-color);
  margin-bottom: 10px;
}

.form-success-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.application-id-display {
  background: #f7fafc;
  display: inline-block;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 1rem;
  margin-bottom: 25px !important;
  border: 1px dashed var(--text-muted);
}

.btn-sm {
  font-size: 0.95rem;
  padding: 10px 20px;
  margin: 0 auto;
  border: none;
}

/* Admin Portal Section */
.admin-portal-section {
  background: var(--admin-bg-gradient);
  min-height: 100vh;
  padding: 50px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  background: #18181b;
  border-radius: 30px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #f4f4f5;
}

.admin-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 25px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.admin-badge {
  background: rgba(230, 57, 70, 0.15);
  color: var(--primary-color);
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 8px;
  border: 1px solid rgba(230, 57, 70, 0.25);
}

.admin-title-area h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
}

.admin-header-actions {
  display: flex;
  gap: 10px;
}

.admin-header-btn {
  border: none;
  font-family: var(--kids-font);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-header-btn.secondary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: #fff;
}

.admin-header-btn.secondary:hover {
  transform: translateY(-2px);
}

.admin-header-btn.danger {
  background: #3f3f46;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-header-btn.danger:hover {
  background: #52525b;
}

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

.stat-card {
  padding: 25px 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: #27272a;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-total {
  border-left: 5px solid #10b981;
  color: #10b981;
}

.stat-pending {
  border-left: 5px solid #f59e0b;
  color: #f59e0b;
}

.stat-approved {
  border-left: 5px solid var(--primary-color);
  color: var(--primary-color);
}

.stat-rejected {
  border-left: 5px solid #a1a1aa;
  color: #a1a1aa;
}

.stat-icon {
  font-size: 2.2rem;
}

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

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #a1a1aa;
}

/* Toolbar & Filters */
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  gap: 20px;
  flex-wrap: wrap;
}

.search-box-wrapper {
  position: relative;
  flex-grow: 1;
  max-width: 400px;
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #a1a1aa;
}

.search-box-wrapper input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #27272a;
  color: #fff;
  border-radius: 20px;
  padding: 10px 15px 10px 42px;
  font-family: var(--kids-font);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.search-box-wrapper input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
}

.filter-controls {
  display: flex;
  gap: 10px;
}

.filter-controls select {
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #27272a;
  color: #fff;
  border-radius: 20px;
  font-family: var(--kids-font);
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-controls select:focus {
  border-color: var(--primary-color);
}

.clear-filters-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #27272a;
  color: #fff;
  border-radius: 20px;
  padding: 8px 15px;
  font-family: var(--kids-font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-filters-btn:hover {
  background: #3f3f46;
}

/* Admin Tabs Styles */
.admin-tabs {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 15px;
  flex-wrap: wrap;
}

.admin-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a1a1aa;
  padding: 10px 22px;
  border-radius: 25px;
  font-family: var(--kids-font);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-2px);
}

.admin-tab-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

/* Table Design */
.admin-table-container {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.applicants-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.applicants-table th {
  background: #27272a;
  padding: 15px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #e4e4e7;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.applicants-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
  color: #e4e4e7;
}

.applicants-table tr:last-child td {
  border-bottom: none;
}

.applicant-card-name {
  font-weight: 700;
  color: #fff;
  display: block;
}

.applicant-card-sub {
  font-size: 0.8rem;
  color: #a1a1aa;
}

/* Badges for Status */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
}

.status-badge.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.approved {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Table Actions */
.actions-header {
  text-align: right;
}

.table-actions-cell {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.action-btn {
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.action-btn:hover {
  transform: scale(1.1);
}

.action-btn.view {
  background: #27272a;
  color: #60a5fa;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.action-btn.approve {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.action-btn.reject {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.action-btn.delete {
  background: #27272a;
  color: #a1a1aa;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.empty-table-state {
  text-align: center;
  padding: 60px 20px !important;
  color: #a1a1aa;
}

.empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 15px;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: #18181b;
  border-radius: 30px;
  max-width: 550px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 6px solid var(--primary-color);
  animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  color: #f4f4f5;
}

@keyframes modalPop {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.close-modal-x {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #a1a1aa;
}

.modal-body {
  padding: 25px;
  max-height: 400px;
  overflow-y: auto;
}

.detail-row {
  margin-bottom: 15px;
  display: grid;
  grid-template-columns: 140px 1fr;
}

.detail-label {
  font-weight: 700;
  color: #a1a1aa;
}

.detail-val {
  color: #f4f4f5;
}

.modal-remarks-area {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.modal-remarks-area label {
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
  color: #a1a1aa;
}

.modal-remarks-area textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #27272a;
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-family: var(--kids-font);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
}

.modal-remarks-area textarea:focus {
  border-color: var(--primary-color);
}

.modal-footer {
  padding: 15px 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-footer-btn {
  border: none;
  font-family: var(--kids-font);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-footer-btn.primary {
  background: var(--primary-color);
  color: #fff;
}

.modal-footer-btn.primary:hover {
  background: #d62828;
}

.modal-footer-btn.secondary {
  background: #27272a;
  color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-footer-btn.secondary:hover {
  background: #3f3f46;
}

/* Review Panel Form */
.review-panel {
  background: #fafafa;
  padding: 20px;
  border-radius: 20px;
  border: 1px dashed rgba(230, 57, 70, 0.3);
}

.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.review-grid div {
  font-size: 0.9rem;
}

.review-grid span {
  color: var(--text-muted);
  display: block;
  font-size: 0.8rem;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* Footer styling */
.main-footer {
  background: #ffffff;
  color: var(--text-muted);
  padding: 60px 20px 30px;
  font-size: 0.95rem;
  border-top: 5px dashed var(--primary-color);
  text-align: left;
  position: relative;
  z-index: 20;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 2px dashed rgba(56, 189, 248, 0.15);
}

.footer-col h3 {
  color: var(--text-dark);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
}

.footer-col h3::after {
  content: '';
  display: block;
  width: 45px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent-color);
  margin-top: 8px;
}

.footer-col p {
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  font-weight: 500;
}

.footer-col ul li a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.footer-social-links {
  display: flex;
  gap: 12px;
}

.social-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 2px dashed var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.social-icon-btn:hover {
  background: var(--secondary-color);
  color: #fff;
  transform: translateY(-3px) scale(1.05);
}

.footer-help-item {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 15px;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-help-item span.icon {
  font-size: 1.3rem;
  background: #f0f9ff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Decorative Kids Theme Elements */
.grass-divider {
  width: 100%;
  height: 70px;
  background-image: url('assets/flowers_grass.png');
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: bottom;
  position: relative;
  z-index: 10;
  pointer-events: none;
  margin-top: -35px;
  margin-bottom: -35px;
}

.animal-peeker {
  position: absolute;
  bottom: 0;
  right: 10%;
  width: 220px;
  height: auto;
  z-index: 15;
  pointer-events: none;
  animation: peekAnimation 8s infinite ease-in-out;
  transform-origin: bottom center;
}

.animal-peeker.peeker-left {
  left: 10%;
  right: auto;
  animation-delay: 2s;
}

@keyframes peekAnimation {

  0%,
  100% {
    transform: translateY(100%) rotate(0deg);
  }

  8%,
  35% {
    transform: translateY(0) rotate(0deg);
  }

  12% {
    transform: translateY(0) rotate(-6deg);
  }

  16% {
    transform: translateY(0) rotate(6deg);
  }

  20% {
    transform: translateY(0) rotate(0deg);
  }

  45% {
    transform: translateY(100%) rotate(0deg);
  }
}

.lake-house-card {
  width: 100%;
  max-width: 460px;
  border-radius: 35px;
  border: 8px solid #fff;
  box-shadow: 0 20px 45px rgba(56, 189, 248, 0.35);
  background: #fff;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.25);
  animation: bounceSoft 5s infinite ease-in-out;
  position: relative;
}

.lake-house-card:hover {
  transform: scale(1.04) rotate(-1deg);
}

.lake-house-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* Contact Section */
.contact-section {
  padding: 90px 20px;
  background: #ffffff;
  border-radius: 50px 50px 0 0;
  border-top: 2px dashed rgba(56, 189, 248, 0.2);
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: flex-start;
}

.contact-info-card {
  background: #f0fdf4;
  /* Pale Grass Green */
  border-radius: 35px;
  padding: 40px;
  border: 4px dashed var(--secondary-color);
  box-shadow: var(--card-shadow);
}

.contact-info-card h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 25px;
  color: var(--text-dark);
}

.contact-info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  background: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.contact-info-item strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.contact-info-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.contact-form-wrapper {
  background: #fff;
  border-radius: 35px;
  padding: 40px;
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-top: 6px solid var(--primary-color);
  box-shadow: var(--card-shadow);
}

/* Admin Auth Card */
.admin-auth-card {
  max-width: 400px;
  margin: 80px auto;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 35px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.auth-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 15px;
}

.admin-auth-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}

.admin-auth-card p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 30px;
  color: #f4f4f5;
}

.admin-auth-card label {
  text-align: left;
  color: #e4e4e7;
}

.admin-auth-card input {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.admin-auth-card input:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3) !important;
}

.auth-error-msg {
  color: #fca5a5;
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 15px;
}

/* Miniature Floating Decorations */
.hero-section,
.programs-section,
.facilities-section,
.admission-section,
.contact-section {
  position: relative;
  overflow: hidden;
}

.floating-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.mini-float {
  position: absolute;
  font-size: 2.2rem;
  opacity: 0.7;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.08));
}

.decor-1 {
  top: 15%;
  left: 5%;
  animation: gentleFloat 8s infinite ease-in-out;
}

.decor-2 {
  top: 55%;
  left: 8%;
  animation: gentleFloat 10s infinite ease-in-out 1.5s;
}

.decor-3 {
  top: 20%;
  right: 7%;
  animation: gentleFloat 9s infinite ease-in-out 3s;
}

.decor-4 {
  top: 70%;
  right: 9%;
  animation: gentleFloat 11s infinite ease-in-out 2s;
}

.decor-5 {
  top: 40%;
  left: 85%;
  animation: gentleFloat 7s infinite ease-in-out 0.5s;
}

@keyframes gentleFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }

  50% {
    transform: translateY(-35px) rotate(15deg) scale(1.15);
  }
}

/* Responsive Rules */
@media (max-width: 992px) {
  .header-container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .admission-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-illustration-card,
  .lake-house-card {
    transform: rotate(0deg) !important;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .programs-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

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

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

  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box-wrapper {
    max-width: 100%;
  }

  .filter-controls {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .filter-controls select,
  .clear-filters-btn {
    flex-grow: 1;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .input-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

  .animal-peeker {
    width: 130px;
  }

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

  .dancing-letters-container {
    top: -50px;
  }

  .dancing-letter {
    font-size: 2rem;
  }
}

/* Dynamic Programs and Fees Styling */
.program-fees-info {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px 15px;
}

.edit-class-btn {
  background: #f59e0b !important;
  color: #fff !important;
  border-color: #f59e0b !important;
}

.edit-class-btn:hover {
  background: #d97706 !important;
  border-color: #d97706 !important;
}

.delete-class-btn {
  background: #ef4444 !important;
  color: #fff !important;
  border-color: #ef4444 !important;
}

.delete-class-btn:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
}

/* Modal form inputs styling */
#editClassForm .input-group input {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#editClassForm .input-group input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
  outline: none;
}

/* Student Database Custom Styling */
.student-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

#studentForm input, #studentForm select,
#editStudentForm input, #editStudentForm select {
  padding: 10px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: inherit;
  transition: all 0.3s ease;
}

#studentForm input:focus, #studentForm select:focus,
#editStudentForm input:focus, #editStudentForm select:focus {
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.25);
}

.edit-student-btn {
  background: #3b82f6 !important;
  color: #fff !important;
  border-color: #3b82f6 !important;
}

.edit-student-btn:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
}

.delete-student-btn {
  background: #ef4444 !important;
  color: #fff !important;
  border-color: #ef4444 !important;
}

.delete-student-btn:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
}

/* Email Toast Notification Styling */
.email-toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  padding: 16px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-width: 400px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}

.email-toast.fade-out {
  animation: slideOutDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

.print-only-header,
.print-only-footer {
  display: none;
}

/* Print Styles for Professional PDFs */
@media print {
  /* Set standard A4 margins */
  @page {
    size: A4 portrait;
    margin: 15mm 20mm;
  }

  /* Force white background and dark text */
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Hide everything except the modal details */
  body > * {
    display: none !important;
  }

  #detailsModal {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: auto !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Force all text inside modal to black on print */
  #detailsModal * {
    color: #000000 !important;
    text-shadow: none !important;
  }

  .modal-backdrop {
    background: transparent !important;
  }

  .modal-card {
    display: block !important;
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Hide Close buttons & footer actions */
  .modal-header button,
  .close-modal-x,
  .modal-footer {
    display: none !important;
  }

  .modal-header h3 {
    display: none !important; /* Will be replaced by print header */
  }

  /* Display print-only elements */
  .print-only-header,
  .print-only-footer {
    display: block !important;
  }

  /* Detail row grid structure */
  .detail-row {
    display: grid !important;
    grid-template-columns: 200px 1fr !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    align-items: center !important;
    page-break-inside: avoid !important;
  }

  .detail-label {
    font-weight: 700 !important;
    color: #1e293b !important;
    text-transform: uppercase !important;
    font-size: 9pt !important;
  }

  .detail-val {
    color: #000000 !important;
    font-size: 11pt !important;
  }

  /* Make status badges clean in B&W */
  .status-badge {
    border: 1.5px solid #000000 !important;
    background: transparent !important;
    color: #000000 !important;
    padding: 3px 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    font-size: 8pt !important;
  }
}