/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100vh;
}

/* Reserve space for the vertical scrollbar so content doesn't reflow
   (and horizontal scrollbars don't flicker hide-and-seek) when it appears */
html {
  scrollbar-gutter: stable;
}

/* Inner scroll panes (admin/member <main>, sidebar <aside>) — reserve the
   scrollbar lane so content stops shifting hide-and-seek when it appears */
main,
aside {
  scrollbar-gutter: stable;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 16px;
  background: linear-gradient(135deg, #0a1628 0%, #1a365d 40%, #0c4a6e 70%, #0a1628 100%);
  background-attachment: fixed;
  color: #e2e8f0;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Glassmorphism utilities ── */
.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-light {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.glass-card {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    0 0 22px rgba(59, 130, 246, 0.28),
    0 0 55px rgba(59, 130, 246, 0.12),
    inset 0 0 24px rgba(59, 130, 246, 0.09);
  transition: transform 0.2s, box-shadow 0.35s ease, border-color 0.3s ease;
}

/* Circular blue flame glow that appears on hover */
.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.22), rgba(59, 130, 246, 0.08) 45%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

@keyframes cardFlame {
  0%, 100% {
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.25),
      0 0 20px rgba(59, 130, 246, 0.35),
      0 0 45px rgba(59, 130, 246, 0.18),
      inset 0 0 22px rgba(96, 165, 250, 0.1);
  }
  50% {
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.25),
      0 0 32px rgba(96, 165, 250, 0.55),
      0 0 75px rgba(59, 130, 246, 0.3),
      inset 0 0 32px rgba(96, 165, 250, 0.18);
  }
}

@keyframes flamePulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.07); opacity: 1; }
}

/* Running light beam that travels around the card border */
@property --glow-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 3px;
  background: conic-gradient(
    from var(--glow-angle),
    transparent 0deg,
    rgba(191, 219, 254, 0.25) 25deg,
    rgba(147, 197, 253, 1) 65deg,
    rgba(59, 130, 246, 0.95) 105deg,
    rgba(191, 219, 254, 0.3) 145deg,
    transparent 185deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.4s ease;
  animation: runLight 3.5s linear infinite;
}

@keyframes runLight {
  to { --glow-angle: 360deg; }
}

.glass-card:hover {
  border-color: rgba(147, 197, 253, 0.65);
  animation: cardFlame 1.8s ease-in-out infinite;
}

.glass-card:hover::before {
  opacity: 1;
  animation: runLight 2.4s linear infinite;
}

.glass-card:hover::after {
  opacity: 1;
  animation: flamePulse 1.8s ease-in-out infinite;
}

.glass-nav {
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-modal {
  background: rgba(15, 30, 60, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.glass-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #e2e8f0;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.glass-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.glass-input:focus {
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

select.glass-input option {
  background-color: #1e293b;
  color: #e2e8f0;
}

select.glass-input option:hover,
select.glass-input option:checked {
  background-color: rgba(96, 165, 250, 0.35);
  color: #ffffff;
}

.glass-btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

.glass-btn-primary {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(29, 78, 216, 0.9));
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: white;
}

.glass-btn-primary:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(29, 78, 216, 1));
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.glass-btn-success {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.8), rgba(21, 128, 61, 0.9));
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: white;
}

.glass-btn-success:hover {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.95), rgba(21, 128, 61, 1));
  box-shadow: 0 4px 20px rgba(22, 163, 74, 0.4);
}

.glass-btn-danger {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.8), rgba(185, 28, 28, 0.9));
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: white;
}

.glass-btn-danger:hover {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.95), rgba(185, 28, 28, 1));
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

/* ── Legacy button classes (kept for compatibility) ── */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.85), rgba(29, 78, 216, 0.95));
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 1), rgba(29, 78, 216, 1));
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.btn-danger {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.85), rgba(185, 28, 28, 0.95));
  color: white;
}

.btn-danger:hover {
  background: linear-gradient(135deg, rgba(220, 38, 38, 1), rgba(185, 28, 28, 1));
}

.btn-success {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.85), rgba(21, 128, 61, 0.95));
  color: white;
}

.btn-success:hover {
  background: linear-gradient(135deg, rgba(22, 163, 74, 1), rgba(21, 128, 61, 1));
}

/* ── Legacy card / input / table (glass overrides) ── */
.card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  margin-bottom: 1rem;
}

.input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.input:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.35rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
  background: rgba(30, 58, 95, 0.6);
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.85rem;
}

tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.page-header {
  text-align: center;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: #e2e8f0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.alert-error {
  background: rgba(220, 38, 38, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.alert-success {
  background: rgba(22, 163, 74, 0.15);
  color: #86efac;
  border: 1px solid rgba(22, 163, 74, 0.3);
}

/* Custom blue scrollbar with hover effect (dashboard scrollable lists) */
.dash-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(96, 165, 250, 0.5) rgba(255, 255, 255, 0.06);
}
.dash-scroll::-webkit-scrollbar {
  width: 8px;
}
.dash-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}
.dash-scroll::-webkit-scrollbar-thumb {
  background: rgba(96, 165, 250, 0.5);
  border-radius: 4px;
}
.dash-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(96, 165, 250, 0.8);
}

/* ===== Light theme (invert-based so inline dark styles also flip) ===== */
html[data-theme="light"] body {
  filter: invert(1) hue-rotate(180deg);
}

/* Restore photos/videos to normal colors */
html[data-theme="light"] body img,
html[data-theme="light"] body video {
  filter: invert(1) hue-rotate(180deg);
}

/* ===== Global custom scrollbars (same style as .dash-scroll) ===== */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(96, 165, 250, 0.5) rgba(255, 255, 255, 0.06);
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}
*::-webkit-scrollbar-thumb {
  background: rgba(96, 165, 250, 0.5);
  border-radius: 4px;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(96, 165, 250, 0.8);
}
*::-webkit-scrollbar-corner {
  background: transparent;
}

/* Utility: completely hide scrollbars (used by modals) */
.no-scrollbar {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.no-scrollbar::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

/* ===== Animated full-screen loading flash ===== */
@keyframes loaderSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes loaderFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(135deg, #0a1628 0%, #1a365d 40%, #0c4a6e 70%, #0a1628 100%);
  animation: loaderFadeIn 0.08s ease;
}

.loader-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(96, 165, 250, 0.25);
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: loaderSpin 0.9s linear infinite;
}

.loader-text {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  animation: loaderPulse 1.2s ease-in-out infinite;
}

/* ===== Login card: soft pulsing glow + thin running border light ===== */
@keyframes loginCardGlow {
  0%, 100% {
    box-shadow:
      0 0 22px rgba(96, 165, 250, 0.22),
      0 20px 60px rgba(0, 0, 0, 0.5);
  }
  50% {
    box-shadow:
      0 0 42px rgba(96, 165, 250, 0.42),
      0 0 80px rgba(59, 130, 246, 0.18),
      0 20px 60px rgba(0, 0, 0, 0.5);
  }
}

.login-card {
  position: relative;
  overflow: hidden;
  animation: loginCardGlow 3s ease-in-out infinite;
}

/* Thin beam of light traveling around the card border */
.login-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--glow-angle),
    transparent 0deg,
    rgba(191, 219, 254, 0.15) 30deg,
    rgba(147, 197, 253, 0.9) 70deg,
    rgba(59, 130, 246, 0.7) 110deg,
    rgba(191, 219, 254, 0.2) 150deg,
    transparent 190deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
  animation: runLight 4s linear infinite;
}

/* ===== Landing page: smooth anchor scroll ===== */
html {
  scroll-behavior: smooth;
}

/* ===== Landing tabs ===== */
.landing-tabs {
  position: -webkit-sticky;
  position: sticky;
  top: 58px;
  z-index: 50;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0.6rem 1rem;
  margin: 0 auto 2rem;
  max-width: 900px;
  background: rgba(15, 23, 42, 0.85);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}
.landing-tab {
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.landing-tab:hover {
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.4);
  background: rgba(96, 165, 250, 0.12);
}

/* ===== Gallery section animation ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
}
.gallery-item {
  animation: galleryFadeIn 0.6s ease both;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.03);
}
.gallery-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 30px rgba(96, 165, 250, 0.22);
  border-color: rgba(147, 197, 253, 0.35);
}
.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-caption {
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}
@keyframes galleryFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  animation: galleryFadeIn 0.25s ease both;
  cursor: pointer;
  padding: 2rem;
}
.gallery-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

