/* css/styles.css */
body { font-family: 'Inter', sans-serif; }
.calendar-cell-available { background: linear-gradient(135deg, #22d3ee33 30%, #f472b633 100%);}
.calendar-cell-booked { background: linear-gradient(135deg, #6366f1 10%, #f43f5e 80%);}
.calendar-cell-pending { background: linear-gradient(135deg, #facc15 10%, #f472b6 80%);}
.calendar-cell-today { outline: 2px solid #38bdf8; }
.calendar-cell:hover { outline: 2px solid #a21caf; cursor:pointer;}
.outline-gradient {
border: 1.5px solid;
border-image: linear-gradient(90deg, #a21caf, #38bdf8 80%) 1;
}
/* ===== Authenticated background (after login) ===== */
/* Keep lilac.jpg at its original size and repeat it */
.authenticated-bg {
  background-image: url('/static/images/lilac.jpg');
  background-repeat: repeat;          /* tile the image */
  background-position: top left;      /* start in the corner */
  background-size: auto;              /* use the image’s intrinsic size */
  background-color: #e8e0f2;          /* subtle lilac behind tiles */
  background-attachment: fixed;       /* nice parallax on desktop */
}

/* iOS/Android: avoid jank with fixed backgrounds */
@media (max-width: 768px) {
  .authenticated-bg {
    background-attachment: scroll;    /* mobile-safe */
  }
}
html, body { min-height: 100vh; }
/* When authenticated, hide the Vanta canvas completely */
#vanta-bg.hidden {
  display: none !important;
}
.slot-selected {
border: 2px solid #38bdf8 !important;
background: linear-gradient(90deg, #a21caf33 20%, #38bdf866 100%) !important;
color: #f1f5f9 !important;
}
.slot-button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.input-outline:focus { outline: 2px solid #38bdf8; }
.noti-slide-in { animation: notislide .7s cubic-bezier(.4,0,.2,1) both;}
@keyframes notislide { from{transform:translateY(40px);opacity:0;} to{transform:none;opacity:1;} }
.login-container {
max-width: 400px;
margin: 100px auto;
padding: 2rem;
background: rgba(15, 23, 42, 0.8);
border-radius: 1rem;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
.login-title {
text-align: center;
margin-bottom: 1.5rem;
font-size: 1.5rem;
font-weight: 600;
background: linear-gradient(90deg, #a21caf, #38bdf8);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.glass {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  -webkit-background-filter: blur(10px);
}
nav {
  position: relative;
  z-index: 1000;
  overflow: visible !important;
}
.account-dropdown {
position: relative;
z-index: 1001;
}
.account-dropdown-content {
display: none;
position: absolute;
right: 0;
background: rgba(15, 23, 42, 0.98);
backdrop-filter: blur(10px);
min-width: 180px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
z-index: 2147483647; /* Maximum possible z-index */
border-radius: 0.5rem;
border: 1px solid rgba(56, 189, 248, 0.3);
overflow: hidden;
transform: translateZ(0); /* Force hardware acceleration */
backdrop-filter: blur(10px);
}
.account-dropdown:hover .account-dropdown-content {
display: block;
}
.account-dropdown-content a {
display: block;
padding: 0.75rem 1rem;
text-decoration: none;
color: #cbd5e1;
transition: background 0.2s;
}
.account-dropdown-content a:hover {
background: rgba(56, 189, 248, 0.2);
}
.settings-tab {
display: none;
}
.settings-tab.active {
display: block;
}
.tab-button {
padding: 0.75rem 1.5rem;
background: transparent;
border: none;
color: #94a3b8;
cursor: pointer;
font-weight: 500;
border-bottom: 2px solid transparent;
}
.tab-button.active {
color: #38bdf8;
border-bottom-color: #38bdf8;
}
.page {
display: none;
}
.page.active {
display: block;
}

/* 24-hour time input styling */
.time-input-container {
display: flex;
gap: 8px;
align-items: center;
}

.time-input {
width: 80px;
padding: 8px 12px;
border-radius: 6px;
background: rgba(30, 41, 59, 0.8);
border: 1px solid rgba(71, 85, 105, 0.5);
color: #e2e8f0;
font-family: monospace;
font-size: 14px;
text-align: center;
}

.time-input:focus {
outline: 2px solid #38bdf8;
border-color: transparent;
}

.time-separator {
color: #94a3b8;
font-weight: bold;
}

.time-format-hint {
font-size: 11px;
color: #94a3b8;
margin-top: 4px;
text-align: center;
}

.slot-display {
font-family: monospace;
background: rgba(30, 41, 59, 0.5);
padding: 4px 8px;
border-radius: 4px;
display: inline-block;
}
.delete-slot-btn {
transition: all 0.2s ease;
transform: scale(1);
}

.delete-slot-btn:hover {
transform: scale(1.1);
}
@media (max-width: 768px) {
/* Login/Signup Form */
.login-container {
width: calc(100% - 2rem);
margin: 60px auto;
padding: 1.5rem;
}

/* Forgot Password Modal */
#forgotPasswordModal .glass {
width: calc(100% - 2rem);
padding: 1.5rem;
}

/* Logout Modal */
#logoutModal .glass {
width: calc(100% - 2rem);
padding: 1.5rem;
}

/* Confirm Deletion Dialog - specific styling */
.fixed.inset-0.z-50.flex.items-center.justify-center.bg-black\/50.backdrop-blur-sm > .glass {
width: calc(100% - 3rem);
padding: 1.5rem;
max-width: none;
}
}
/* Animation for deleted row */
@keyframes fadeOutRight {
to {
opacity: 0;
transform: translateX(20px);
}
}
/* Time Picker Styles */
.time-picker-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}

.time-picker-container {
background: rgba(15, 23, 42, 0.9);
border-radius: 16px;
padding: 24px;
width: 320px;
max-width: 90%;
backdrop-filter: blur(10px);
border: 1px solid rgba(56, 189, 248, 0.3);
}

.time-display {
font-size: 2.5rem;
text-align: center;
margin-bottom: 20px;
font-weight: bold;
display: flex;
justify-content: center;
gap: 5px;
}

.time-part {
padding: 5px 15px;
border-radius: 8px;
cursor: pointer;
background: rgba(30, 41, 59, 0.7);
transition: background 0.2s;
}

.time-part.active {
background: rgba(56, 189, 248, 0.3);
}
/* Mobile menu specific styles */
#mobile-menu {
transition: all 0.3s ease;
z-index: 999;
}

/* Ensure dropdowns appear above other content */
.account-dropdown {
position: relative;
}

.account-dropdown-content {
display: none;
position: absolute;
right: 0;
min-width: 180px;
z-index: 1000;
}

/* Mobile specific dropdown styles */
@media (max-width: 768px) {
.account-dropdown-content {
position: static;
display: none;
animation: none;
box-shadow: none;
border: none;
background: rgba(30, 41, 59, 0.5);
border-radius: 0.5rem;
margin-top: 0.25rem;
}

.account-dropdown:hover .account-dropdown-content,
.account-dropdown:focus-within .account-dropdown-content {
display: block !important;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.animate-spin {
animation: spin 1s linear infinite;
}
#mobile-menu {
display: none;
}

#mobile-menu.hidden {
display: none;
}

#mobile-menu:not(.hidden) {
display: block;
}
}
.noti-slide-in {
animation: notislide 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes notislide {
from {
transform: translateY(40px);
opacity: 0;
}
to {
transform: none;
opacity: 1;
}
}

/* For the loading spinner */
.animate-spin {
animation: spin 1s linear infinite;
}

@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}

/* Smooth transitions for mobile menu */
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

/* Ensure nav links have proper spacing on mobile */
.nav-link {
display: block;
padding: 0.5rem 1rem;
}
.clock-container {
position: relative;
width: 280px;
height: 280px;
margin: 0 auto 20px;
}

.clock-face {
position: relative;
width: 100%;
height: 100%;
border-radius: 50%;
background: rgba(30, 41, 59, 0.8);
border: 2px solid rgba(56, 189, 248, 0.3);
display: flex;
justify-content: center;
align-items: center;
}

.clock-center {
position: absolute;
width: 12px;
height: 12px;
background: #38bdf8;
border-radius: 50%;
z-index: 10;
}

.hour-hand, .minute-hand {
position: absolute;
background: #e2e8f0;
border-radius: 4px;
transform-origin: bottom center;
top: 50%;
left: 50%;
z-index: 5;
}

.hour-hand {
width: 6px;
height: 70px;
margin-top: -70px;
margin-left: -3px;
}

.minute-hand {
width: 4px;
height: 100px;
margin-top: -100px;
margin-left: -2px;
}

/* Clock marker base styles */
.hour-marker, .minute-marker {
position: absolute;
width: 36px;
height: 36px;
text-align: center;
font-weight: 600;
transform: translate(-50%, -50%); /* Perfect centering */
user-select: none;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
color: #cbd5e1;
font-size: 14px;
transition: all 0.2s ease;
}

/* Active (selected) state */
.hour-marker.active, 
.minute-marker.active {
color: white;
background: #38bdf8;
transform: translate(-50%, -50%) scale(1.2);
z-index: 2;
}

/* Hover state */
.hour-marker:hover, 
.minute-marker:hover {
color: #38bdf8;
}

.ampm-container {
display: flex;
justify-content: center;
gap: 15px;
margin-bottom: 20px;
}

.ampm-btn {
padding: 8px 20px;
border-radius: 30px;
cursor: pointer;
background: rgba(30, 41, 59, 0.7);
transition: all 0.3s;
font-weight: 600;
color: #cbd5e1;
}

.ampm-btn.active {
background: #38bdf8;
color: white;
}

.time-picker-actions {
display: flex;
justify-content: center;
gap: 15px;
}

.time-picker-btn {
padding: 10px 25px;
border-radius: 8px;
border: none;
font-weight: 600;
cursor: pointer;
transition: all 0.3s;
}

.time-picker-cancel {
background: #475569;
color: #e2e8f0;
}

.time-picker-ok {
background: #38bdf8;
color: white;
}

.time-picker-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
/* Navbar container */
nav {
flex-direction: column;
padding: 1rem;
align-items: stretch;
}

/* Right-side navigation container */
nav > div:last-child {
flex-direction: column;
gap: 0.5rem;
margin-top: 1rem;
}

/* Regular nav links */
.nav-link {
padding: 0.75rem;
border-radius: 0.5rem;
background: rgba(30, 41, 59, 0.5);
text-align: center;
}

/* Account dropdown */
.account-dropdown {
width: 100%;
}

.account-dropdown > button {
width: 100%;
justify-content: center;
padding: 0.75rem;
}

/* Dropdown menu */
.account-dropdown-content {
position: static;
width: 100%;
margin-top: 0.5rem;
box-shadow: none;
border: 1px solid rgba(56, 189, 248, 0.2);
animation: none;
}

/* Show dropdown as expanded on mobile */
.account-dropdown:hover .account-dropdown-content,
.account-dropdown:focus-within .account-dropdown-content {
display: block !important;
}
/* Language Toggle Styles */
#languageToggle {
cursor: pointer;
user-select: none;
display: flex;
align-items: center;
gap: 4px;
}

#languageToggle svg {
transition: transform 0.2s ease;
}

#languageToggle:hover svg {
transform: translateY(1px);
}
}
@media (max-width: 768px) {
.calendar-cell {
min-height: 36px !important;
padding: 0.25rem !important;
font-size: 0.75rem !important;
}

.calendar-cell span:not(:first-child) {
display: none !important; /* Hide the "Booked", "Pending", etc. text */
}

#calendarGrid {
gap: 0.25rem !important;
}

.calendar-cell-available, 
.calendar-cell-pending, 
.calendar-cell-booked {
position: relative;
}

/* Add status indicators as colored dots */
.calendar-cell-available::after,
.calendar-cell-pending::after,
.calendar-cell-booked::after {
content: '';
position: absolute;
bottom: 2px;
left: 50%;
transform: translateX(-50%);
width: 6px;
height: 6px;
border-radius: 50%;
}

.calendar-cell-available::after {
background: #22d3ee;
}

.calendar-cell-pending::after {
background: #facc15;
}

.calendar-cell-booked::after {
background: #f43f5e;
}

/* Today indicator */
.calendar-cell-today {
outline-width: 1px !important;
}
/* Admin Slot Modal Styles */
#adminSlotModal {
position: fixed;
top: auto;
left: 50%;
bottom: 20px;
transform: translateX(-50%);
z-index: 1000;
width: calc(100% - 2rem);
max-width: 600px;
max-height: 50vh;
display: none;
margin: 0 auto;
}

#adminSlotModal .glass {
background: rgba(15, 23, 42, 0.98);
border-radius: 1rem;
border: 1px solid rgba(56, 189, 248, 0.3);
overflow: hidden;
backdrop-filter: blur(10px);
width: 100%;
height: 100%;
}
/* Admin slot list styling */
#adminSlotList {
max-height: calc(50vh - 180px);
overflow-y: auto;
padding-right: 8px;
}
/* Mobile layout */
@media (max-width: 1023px) {
/* Admin modal - appears inline */
#adminSlotModal {
position: relative;
order: 2;
margin-top: 10px;
width: 100%;
left: 0;
right: 0;
bottom: auto;
transform: none;
z-index: auto;
max-height: none;
}
#adminSlotModal .glass {
width: 100%;
max-width: none;
margin: 0;
border-radius: 1rem;
max-height: none;
overflow-y: auto;
}
}
@media (max-width: 767px) {
  #announcementModal {
    align-items: flex-start;
    padding-top: 20px;
    padding-bottom: 20px;
    overflow-y: auto;
  }
  
  #announcementModal > div {
    margin-top: 0;
    margin-bottom: auto;
  }
}
/* Scroll inside the notes list */
#studentNotesList {
  max-height: 200px; /* ~2–3 notes visible */
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: none; /* Firefox hide by default */
}

#studentNotesList::-webkit-scrollbar {
  width: 6px;
}

#studentNotesList::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

#studentNotesList::-webkit-scrollbar-track {
  background: transparent;
}

#studentNotesList:hover::-webkit-scrollbar-thumb {
  opacity: 1;
}

/* Mobile: slightly taller so more notes visible without scrolling */
@media (max-width: 768px) {
  #studentNotesList {
    max-height: 300px;
  }
}
@media (max-width: 768px) {
  /* Reset Password Modal — match Recover modal sizing on mobile */
  #resetPasswordModal .glass {
    width: calc(100% - 2rem);
    padding: 1.5rem;
    max-width: none;   /* let it breathe on small screens */
  }
}
}
/* === Keep the top nav transparent (no global blur) === */
header, .header, .navbar, nav {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  filter: none !important;
  box-shadow: none !important;
}

/* Kill any full-screen overlay blur that was touching the screen edges */
@media (max-width: 768px) {
  #mobile-menu,
  #mobile-menu::before,
  #mobile-menu::after {
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .fixed.inset-0[class*="backdrop-blur"],
  .mobile-menu-overlay,
  .menu-overlay {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

/* === Mobile menu: side spacing + glass panel (matches your screenshot) === */
@media (max-width: 768px) {
  /* breathing room from the screen edges */
  #mobile-menu { padding: 0 1rem !important; box-sizing: border-box; }

  /* main panel (the first visible child inside #mobile-menu) */
  #mobile-menu > .glass,
  #mobile-menu > .menu-panel,
  #mobile-menu > div:not(:empty):first-child,
  #mobile-menu > ul:first-child {
    background: rgba(15, 23, 42, 0.92) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(56, 189, 248, 0.18) !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35) !important;
    overflow: hidden;
  }

  /* menu items: centered text + soft dividers like in your image */
  #mobile-menu a {
    display: block;
    padding: 14px 16px;
    text-align: center;
    color: #e2e8f0;
  }
  #mobile-menu a + a {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  /* account sub-panel: inset card with its own outline & blur */
  #mobile-menu .account-dropdown-content {
    margin: 12px;                                   /* inset from panel edges */
    background: rgba(15, 23, 42, 0.96) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35) !important;
  }
  #mobile-menu .account-dropdown-content a {
    padding: 12px 14px;
    text-align: center;
  }
  #mobile-menu .account-dropdown-content a + a {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
}
/* Resize + center the welcome/hero card */
.welcome-box {
  width: 100%;
  max-width: 960px;              /* <— adjust: 800–1024px works well */
  margin: 0 auto 1.5rem;         /* center horizontally, add bottom gap */
  padding: 1.25rem;              /* inner spacing on mobile */
  background: rgba(15, 23, 42, 0.85);  /* same glass tone as rest of UI */
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* Make it breathe a bit more on larger screens */
@media (min-width: 768px) {
  .welcome-box {
    padding: 2rem 2.25rem;
  }
}

/* Ensure text doesn’t stretch too wide inside */
.welcome-box .welcome-content {
  max-width: 70ch;               /* comfortable reading width */
}
