/* Custom styles for Sunrise School - Bootstrap Version */
:root {
  --brand: #0d6efd; /* Bootstrap primary blue */
  --accent: #3b82f6;
  --muted: #6c757d;
  --radius: 12px;
  --transition: all 0.25s ease;
}

/* Notice Modal Styles */
.modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.modal-header {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  padding: 1rem 1.5rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top-color: rgba(0,0,0,0.08);
}

.modal.fade .modal-dialog {
  transform: scale(0.95);
  transition: transform 0.2s ease-out;
}

.modal.show .modal-dialog {
  transform: none;
}

/* Logo responsiveness */
.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .logo-img {
    height: 90px;
  }
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  color: #212529;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
}

/* Navbar enhancements */
.navbar { 
  backdrop-filter: blur(6px);
  padding: 0.5rem 1rem;
}

.navbar-brand { 
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 1.2rem;
}

@media (max-width: 991px) {
  .navbar-brand {
    font-size: 1rem;
  }
  .navbar-nav {
    padding: 1rem 0;
  }
  .nav-item {
    padding: 0.5rem 0;
  }
  #loginButton {
    margin-top: 1rem;
    text-align: center;
  }
}

/* Login button styling */
#loginButton .btn {
  padding: 0.6rem 1.8rem;
  transition: all 0.3s ease;
  background: white;
  color: var(--brand);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#loginButton .btn:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

@media (max-width: 991px) {
  #loginButton .btn {
    padding: 0.7rem 2rem;
    width: auto;
    min-width: 160px;
    justify-content: center;
  }
}

/* Skip-link / accessibility helpers */
.visually-hidden-focusable {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.visually-hidden-focusable:focus,
.visually-hidden-focusable:active {
  position: fixed !important; top: 1rem; left: 1rem;
  height: auto; width: auto; padding: 0.6rem 0.9rem; background: var(--brand);
  color: #fff; z-index: 1080; border-radius: 6px; text-decoration: none;
  box-shadow: 0 6px 20px rgba(13,110,253,0.12);
}

/* Hero carousel responsiveness */
.hero-img { 
  height: 300px;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 768px) {
  .hero-img {
    height: 450px;
  }
}

@media (min-width: 992px) {
  .hero-img {
    height: 550px;
  }
}

.carousel-caption {
  background: rgba(0,0,0,0.35);
  padding: 1rem;
  border-radius: 10px;
}

@media (max-width: 576px) {
  .carousel-caption {
    padding: 0.5rem;
    left: 5%;
    right: 5%;
  }
  .carousel-caption h2 {
    font-size: 1.25rem;
  }
  .carousel-caption p {
    font-size: 0.875rem;
    margin-bottom: 0;
  }
}

/* Typography adjustments */
h1,h2,h3,h4,h5,h6 { line-height: 1.2; }

/* Cards */
.card {
  border-radius: var(--radius);
  transition: var(--transition);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.card-body {
  padding: 1.25rem;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* Gallery thumbnails */
#gallery-preview img {
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  width: 100%;
}

/* Gallery page responsiveness */
.gallery-page .card-img-top {
  height: 200px;
  object-fit: cover;
}

@media (min-width: 576px) {
  .gallery-page .card-img-top {
    height: 240px;
  }
}

@media (min-width: 992px) {
  .gallery-page .card-img-top {
    height: 340px;
  }
}

/* Image hover effects */
.gallery-page .card:hover img,
.gallery-card:hover img {
  transform: scale(1.04);
  transition: transform 0.35s ease;
}

/* Button and link focus */
.btn:focus,
a:focus,
.nav-link:focus {
  outline: 3px solid rgba(13,110,253,0.18);
  outline-offset: 3px;
}

/* Small responsive tweaks */
@media (max-width: 768px) {
  #gallery-preview img {
    height: 140px;
  }
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* Footer polish */
footer {
  background: #0b233f;
  padding: 2rem 0;
}

footer .text-muted {
  color: rgba(255,255,255,0.65) !important;
}

/* Dropdown menu responsiveness */
.dropdown-menu-custom {
  border: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-radius: var(--radius);
}

@media (max-width: 991px) {
  .dropdown-menu-custom {
    background: rgba(255,255,255,0.05);
    box-shadow: none;
  }
  .dropdown-item {
    color: rgba(255,255,255,0.8);
  }
  .dropdown-item:hover {
    background: rgba(255,255,255,0.1);
  }
}

/* Misc styles */
.bg-gradient {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
}

.link-secondary {
  text-decoration: none;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.card,
.gallery-card {
  animation: fadeIn 0.45s ease-out;
}

/* User dropdown responsiveness */
.user-dropdown {
  min-width: 240px;
}

@media (max-width: 991px) {
  .user-dropdown {
    width: 100%;
    min-width: auto;
    margin: 0.5rem 0;
  }
}

/* Container padding adjustments for smaller screens */
@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  section {
    padding: 2rem 0;
  }
}
