/* ===== Reset ===== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
  color: #0f172a;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ===== content ===== */
.main-content {
  position: relative;
  margin: 32px 0 0 330px;
  padding: 24px 32px 40px 20px;
  max-width: 1200px;
  width: calc(100% - 330px);
}
#bell{
  position: relative;
  margin-left: auto;
  margin-top: -50px;
}

.tiles-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  width: 100%;
  max-width: 1080px;
}

.tile_title{
  font-size: 15px;
  font-weight: bold;
  margin: 0;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 22px;
  flex: 1 1 250px;
  min-width: 250px;
  height: 160px;
}

.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.10);
}
.tile_logo{
  height: 48px;
  width: 48px;
}

.appointment_date,
.appointment_count,
.appointment_sessions {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.need_help_text_container{
  margin-top: 0;
  margin-left: 0;
}

.need_help_text{
  font-size: 15px;
  font-weight: bold;
  opacity: 0.5;
}
.long_tile {
  position: relative;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  min-height: 280px;
  border-radius: 18px;
  margin-top: 25px;
  width: min(100%, 1080px);
  padding: 24px;
}
.inside_tile {
  background: #f8fbff;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  min-height: 150px;
  border-radius: 14px;
  margin-top: 20px;
  width: 100%;
  padding: 16px;
}

.need_help {
  position: relative;
  margin-top: 20px;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  min-height: 200px;
  border-radius: 18px;
  width: min(100%, 1080px);
  padding: 24px;
}




  /* ===== Sidebar ===== */

.sidebar {
  width: 300px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-right: 1px solid #e2e8f0;
  box-shadow: 6px 0 20px rgba(15, 23, 42, 0.04);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
}

.sidebar a {
  padding: 13px 16px;
  text-decoration: none;
  color: #334155;
  font-weight: 600;
  border-radius: 12px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.sidebar a:hover,
.sidebar a.active {
  background: #eaf3ff;
  color: #0f4fa3;
}

#logoutbutton {
  margin-top: auto;
  margin: 24px 0 0 0;
  background: linear-gradient(135deg, #0f6ddd 0%, #0b4f96 100%);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 109, 221, 0.2);
}

/* ===== Forms ===== */
.login-form {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -150px;
  margin-left: 0px;
}
.login-form_customer{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -150px;
  margin-left: 0px;
}

#side-logo-title{
  font-size: 30px;
  font-weight: bold;
  margin-top: -70px;
  margin-left: 100px;
}

#register-title{
  font-size: 50px;
  font-weight: bold;
  align-items: center;



}
.register-form{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 80px;
}

#reg_Form {
  width: 35%;
}


.reset-form{
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 200px;
  align-items: center;
  font-size: 25px;
}
.back-btn{
  position: relative;
  margin-top: -40px;
  margin-left: 640px;
  width: 20%;
}
#booking_header{
  position: relative;
  margin: 16px auto 0;
  width: min(100%, 960px);
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}
#back-button{
  position: relative;
  margin: 0;
  justify-self: start;
}
#header{
  margin: 0;
  text-align: center;
  justify-self: center;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}

/* Container to align everything neatly */
.stepper-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(100%, 760px);
  margin: 20px auto 0;
  padding: 0 16px;
  position: relative;
}

/* Individual step wrapper */
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1; /* Distributes space evenly */
}

/* The Connecting Line */
/* We add a line after every step except the very last one */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  /* Vertically center the line with the middle of your circles */
  top: 25px;
  /* Push the line to start from the center of the current circle to the next */
  left: 50%;
  width: 100%;
  height: 4px;
  background-color: #e0e0e0; /* Gray line color */
  z-index: 1; /* Keeps the line behind the circles */
}

/* The Circle Styles */
.circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #ccc; /* Matches your gray circles */
  color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-family: sans-serif;
  position: relative;
  z-index: 2; /* Ensures the circle sits on top of the line */
}

/* Optional: Active State Styling */
.step.active .circle {
  background-color: #0066cc; /* Active circle color */
  color: #fff;
}

.step.active::after {
  background-color: #0066cc; /* Active line color */
}


.booking-form-container{
  margin: 50px auto 0;
  width: min(100%, 920px);
  padding: 28px 32px 32px;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.form_tile{
  display: flex;
  align-items: center;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
  height: 100px;
  width: 100%;
}
.booking-form{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 800px;
  margin-top: 30px;
  font-size: 25px;

}
/* Container spacing */
.service-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 720px;
  margin: 22px auto 0;
  font-family: system-ui, -apple-system, sans-serif;
}

.booking-summary-card {
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* The Base Card Style */
.service-card {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Crucial: splits left side content and right side radio */
  width: 100%;
  box-sizing: border-box;
  padding: 20px;
  background-color: #ffffff;
  border: 1.5px solid #eef2f6;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Hover State */
.service-card:hover {
  border-color: #cbd5e1;
}

/* Selected/Active State Style */
.service-card:has(input[type="radio"]:checked),
.service-card.active {
  border-color: #2563eb;
  background-color: #f8fafc;
}

/* Left content cluster alignment */
.card-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Icon Box Custom Colors */
.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blue-icon { background-color: #eff6ff; color: #2563eb; }
.green-icon { background-color: #f0fdf4; color: #16a34a; }

/* Text Stack */
.card-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
}

.card-description {
  font-size: 0.9rem;
  color: #64748b;
}

.card-meta {
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  margin-top: 2px;
}

/* Completely Custom Radio Button Styling */
input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  margin: 0;

  width: 24px;
  height: 24px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;

  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

/* When selected, the outer boundary shifts to blue */
input[type="radio"]:checked {
  border-color: #2563eb;
}

/* Solid Blue Center Core Mark when selected */
input[type="radio"]:checked::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #2563eb;
}
/* Base container wrapper matching your form size specs */
.datetime-picker-container {
  display: flex;
  gap: 24px;
  width: min(100%, 860px);
  margin: 24px auto 0;
  padding: 24px 32px;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, sans-serif;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

/* --- CALENDAR SIDE --- */
.calendar-panel {
  flex: 1.2;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;

}

.month-year {
  font-weight: 600;
  font-size: 1.1rem;
  color: #0f172a;
}

.nav-btn {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  padding: 0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}

.nav-btn:hover {
  border-color: #94a3b8;
  color: #0f172a;
  background: #eff6ff;
}

/* Day labels header row */
.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 8px;
}

/* Main Calendar grid core */
.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.day, .day-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.day:hover:not(.empty) {
  background-color: #f1f5f9;
}

/* Hide native inputs inside custom interactive labels */
.day-label input[type="radio"],
.time-slot input[type="radio"] {
  display: none;
}

/* Selected Date Style rules */
.day-label input[type="radio"]:checked + .day-cell {
  background-color: #2563eb;
  color: #ffffff;
  font-weight: 600;
}

/* --- PANEL SPLITTER --- */
.picker-divider {
  width: 1.5px;
  background-color: #eef2f6;
}

/* --- TIME SLOT SIDE --- */
.time-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.time-header {
  margin: 0 0 16px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
  height: 32px;
  display: flex;
  align-items: center;
}

.time-slots {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto; /* Adds clean scroll space if many slots exist */
}

/* Unselected Time Card Box */
.time-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  box-sizing: border-box;
  border: 1.5px solid #eef2f6;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.time-slot:hover .time-cell {
  border-color: #cbd5e1;
}

/* Selected Active Time Slot block design */
.time-slot input[type="radio"]:checked + .time-cell {
  background-color: #f8fafc;
  border-color: #2563eb;
  color: #2563eb;
  font-weight: 600;

}
/* Calendar active configurations */
.day-label.active-day .day-cell {
  background-color: #1d4ed8 !important;
  color: white !important;
  border-radius: 6px;
  font-weight: bold;
}

/* Time slots active selection modifications */
.time-slot.active-time {
  border-color: #1d4ed8 !important;
  background-color: #1d4ed8 !important;
  color: white !important;
}
/* --- appointment page --- */

/* Bottom Notification Info Card */
.appointment-info-card {
  background-color: #d9e1f6; /* Soft pastel blue fill */
  border-radius: 14px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 200px;
  margin-left: 30px;
  width: 800px;
  height: 200px;
}

.appointment-info-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #0c1e3f;
  margin-bottom: 6px;
}

.appointment-info-card p {
  font-size: 13px;
  color: #4a5568;
  line-height: 1.4;
  max-width: 80%;
}
/* Style for disabled past calendar days */
.day.past-disabled {
  color: #9ca3af !important;
  cursor: not-allowed !important;
  background: #f3f4f6 !important;
  border: 1px dashed #d1d5db;
  opacity: 0.85;
  pointer-events: none;
}

.day.past-disabled .day-cell {
  color: #9ca3af !important;
  background: transparent !important;
}
/* Calendar Icon styling styled to match illustration placeholder */
.calendar-image {
  font-size: 42px;
  color: #3b82f6;
  opacity: 0.85;
  padding-right: 10px;
}
.btn-primary{
  width: 100%;
}
form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 800px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

label {
  margin-bottom: 6px;
  font-weight: 600;
  color: #334155;
}

input, select {
  padding: 14px;
  margin-bottom: 20px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fbfdff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

button, .help-button {
  padding: 14px;
  background: linear-gradient(135deg, #0f6ddd 0%, #0b4f96 100%);
  color: #000000;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 109, 221, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover, .help-button:hover {
  background: linear-gradient(135deg, #0d5fb8 0%, #093b72 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 109, 221, 0.22);
}

.form-error {
  color: #b91c1c;
  margin-bottom: 16px;
  min-height: 24px;
}

.field-error {
  color: #b91c1c;
  font-size: 0.9rem;
  margin-top: -12px;
  margin-bottom: 14px;
  min-height: 18px;
}

input.invalid, select.invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.access-code-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}

.access-code-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  padding: 80px;
  width: min(800px, calc(100% - 32px));
  text-align: center;
  margin-bottom: 400px;
}

.access-code-card h1 {
  margin-bottom: 16px;
  font-size: 28px;
  color: #0f172a;
}

.access-code-card p {
  margin-bottom: 24px;
  color: #475569;
  line-height: 1.6;
}

.choice-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.choice-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 10px 24px rgba(15, 109, 221, 0.12);
}

.btn-text {
  color: #0f172a !important;
  font-size: 16px;
}

.choice-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 109, 221, 0.18);
}

.customer-btn {
  background: linear-gradient(135deg, #0f6ddd 0%, #0b4f96 100%);
  color: white;
}

.admin-btn {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  color: #0f172a;
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.choice-icon {
  font-size: 1.05rem;
}

button:hover {
  background: #004fa3;
}

.links {
  margin-top: 20px;
  text-align: center;
}

.links a {
  color: #0066cc;
  text-decoration: none;
}
/* Scrollable Appointments Container Adjustment */
#appointmentsList {
  max-height: 520px;
  overflow-y: auto;
  padding: 20px;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

#appointmentsList::-webkit-scrollbar {
  width: 6px;
}

#appointmentsList::-webkit-scrollbar-track {
  background: transparent;
}

#appointmentsList::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

#appointmentsList::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Calendar & Time Selection State Overrides */
.day-label.active-day .day-cell {
  background-color: #1d4ed8 !important;
  color: white !important;
  border-radius: 6px;
  font-weight: bold;
}

.time-slot.active-time {
  border-color: #1d4ed8 !important;
  background-color: #1d4ed8 !important;
  color: white !important;
}

/* Past & Capped Selection Constraints Styles */
.day.past-disabled {
  color: #cbd5e1 !important;
  cursor: not-allowed !important;
  background: #f8fafc !important;
  pointer-events: none;
}

.time-slot.unavailable {
  opacity: 0.85;
  pointer-events: none;
  background-color: #f3f4f6 !important;
  border-color: #d1d5db !important;
  color: #9ca3af !important;
  cursor: not-allowed;
}

.time-slot.unavailable .time-cell {
  background-color: #f3f4f6 !important;
  color: #9ca3af !important;
  border-color: #d1d5db !important;
}

.time-slot.blanked-out {
  opacity: 0.22;
  filter: grayscale(1);
}

.time-slot.blanked-out .time-cell {
  background-color: #f8fafc !important;
  color: #cbd5e1 !important;
  border-color: #e5e7eb !important;
  box-shadow: none;
}
/* ==========================================
   Admin Management Interface Portal Styles
   ========================================== */

.admin-container {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 20px;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 20px;
}

.portal-title {
  margin: 0 0 6px 0;
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
}

.portal-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 15px;
}

.btn-back {
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: background 0.2s ease;
}

.btn-back:hover {
  background: #f8fafc;
}

/* Metric Display Grid Utilities */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.metric-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.metric-card h3 {
  margin: 0 0 8px 0;
  font-size: 14px;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.5px;
}

.metric-card p {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: #1d4ed8;
}

.count-green {
  color: #10b981 !important;
}

.count-gray {
  color: #64748b !important;
}

/* Table Containers & Structuring */
.table-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  margin-bottom: 40px;
}

.section-title {
  font-size: 20px;
  margin: 0 0 15px 0;
  color: #1e293b;
  font-weight: 600;
}

.text-gray {
  color: #64748b !important;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background: #f8fafc;
  padding: 16px 24px;
  font-size: 14px;
  color: #475569;
  font-weight: 600;
  border-bottom: 1px solid #e2e8f0;
}

.admin-table td {
  padding: 18px 24px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 15px;
  color: #334155;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.table-loading {
  text-align: center;
  color: #64748b;
  padding: 30px;
}

/* Navigation Tabs Styling */
.admin-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 12px;
}

.admin-tab-btn {
  padding: 10px 20px;
  font-weight: 600;
  border: none;
  background: #e2e8f0;
  color: #475569;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-tab-btn:hover {
  background: #cbd5e1;
}

.admin-tab-btn.active {
  background: #1d4ed8;
  color: #ffffff;
}

/* CSV Exportation Layout */
.csv-exportation { 
  padding: 10px 20px;
  font-weight: 600;
  border: none;
  background: #e2e8f0;
  color: #475569;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: auto;
}

.hidden {
  display: none !important;
}

/* Manage Availability Layout */
.admin-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.section-subtitle {
  color: #64748b;
  margin-bottom: 20px;
}

.admin-alloc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .admin-alloc-grid {
    grid-template-columns: 1fr;
  }
}

.admin-cal-card,
.admin-slots-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
}

.admin-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.admin-cal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #1e293b;
}

.admin-cal-nav button {
  width: 40px;
  height: 40px;
  padding: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

#selectAllDatesBtn {
  width: auto;
  min-width: 112px;
  padding: 0 14px;
  font-size: 0.9rem;
  border-radius: 999px;
}

#SelectMultiple {
  width: auto;
  min-width: 84px;
  padding: 0 14px;
  font-size: 0.9rem;
  border-radius: 999px;
}

#SelectMultiple.active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.admin-cal-headers-grid,
.admin-cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}

.admin-day-head {
  font-weight: bold;
  font-size: 12px;
  color: #64748b;
  padding-bottom: 6px;
}

.admin-day-cell {
  padding: 10px 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s ease;
}

.admin-day-cell:hover {
  background: #eff6ff;
  border-color: #3b82f6;
}

.admin-day-cell.selected {
  background: #1d4ed8;
  color: #e4e4e4;
  font-weight: bold;
  border-color: #1d4ed8;
}

.admin-day-cell.has-availability {
  box-shadow: inset 0 -4px 0 #16a34a;
}

.admin-day-cell.blocked {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

.admin-day-cell.weekend {
  background: #e5e7eb;
  color: #6b7280;
  border-color: #d1d5db;
  cursor: not-allowed;
  pointer-events: none;
}

.admin-day-cell.selected.blocked {
  background: #b91c1c;
  color: #ffffff;
  border-color: #7f1d1d;
}

.admin-day-cell.empty {
  background: transparent;
  border: none;
  cursor: default;
}

.selected-date-highlight {
  font-weight: bold;
  color: #1d4ed8;
  margin-bottom: 12px;
}

.admin-action-btn {
  width: 100%;
  margin-bottom: 12px;
  background: #eff6ff;
  color: #0f172a;
  border: 1px solid #bfdbfe;
  box-shadow: none;
}

.admin-action-btn:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  transform: none;
}

.slot-toolbar {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.slot-dropdown {
  position: relative;
  flex: 1;
}

.slot-dropdown-btn {
  margin-bottom: 0;
}

.slot-dropdown-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  min-width: 180px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.slot-dropdown-menu label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  color: #0f172a;
  font-size: 14px;
  cursor: pointer;
}

.slot-dropdown-menu label:hover {
  background: #eff6ff;
}

.save-availability-btn {
  width: auto;
  min-width: 92px;
  margin-bottom: 0;
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.save-availability-btn:hover {
  background: #15803d;
  border-color: #15803d;
}

.time-pills-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.time-pill-btn {
  padding: 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
  color: #0f172a;
  opacity: 1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.time-pill-btn:hover {
  border-color: #60a5fa;
  color: #0f172a;
  background: #eff6ff;
}

.time-pill-btn.allocated {
  background: #dcfce7;
  border-color: #16a34a;
  color: #15803d;
  font-weight: bold;
}

.time-pill-btn.allocated::after {
  content: attr(data-capacity) " slots";
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #166534;
}

.time-pill-btn.partial {
  background: #fef9c3;
  border-color: #eab308;
  color: #854d0e;
}

.time-pill-btn:not(.allocated) {
  background: #ffffff;
}

/* ===== Mobile ===== */

@media (max-width: 768px) {
  main {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .content {
    padding: 20px;
  }
}
.login-page-container {
  margin-left: 50px;
  margin-top:300px;
}
.input-group{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* =========================================================
   Shared layout polish and alignment overrides
   ========================================================= */

html {
  scroll-behavior: smooth;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

body {
  line-height: 1.5;
}

header.clinic-header,
#side-MD-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 1120px);
  margin: 24px auto 0;
  padding: 0 24px;
}

header.clinic-header .logo,
#side-logo {
  width: 108px !important;
  height: auto !important;
  flex-shrink: 0;
  object-fit: contain;
}

#side-logo-title {
  margin: 0 !important;
  line-height: 1.05;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  color: #0f172a;
}

.sidebar {
  align-items: center;
  gap: 0;
}

.sidebar #side-logo {
  width: 118px !important;
  margin: 0 0 10px 0;
}

.sidebar #side-logo-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 18px !important;
}

.sidebar br {
  display: none;
}

.sidebar a {
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 48px;
}

.main-content {
  margin: 32px auto 0 330px;
  width: min(calc(100% - 350px), 1200px);
  padding-right: 24px;
}

.tiles-container {
  align-items: stretch;
}

.tile {
  justify-content: center;
}

.tile_header,
.long_tile h2,
.need_help h2,
.booking-form-container h2,
.datetime-picker-container h3,
.admin-container h2,
.admin-container h3,
.access-code-card h1,
.login-card h1,
.reset-form h1,
.appointments-view-container h1 {
  margin-top: 0;
}

#booking_header {
  margin-top: 24px;
}

#header {
  line-height: 1.1;
}

#back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

#back-arrow {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.stepper-container {
  gap: 8px;
}

.step p {
  margin-top: 8px;
  text-align: center;
  font-size: 0.95rem;
  color: #475569;
}

.booking-form-container,
.datetime-picker-container,
.need_help,
.long_tile,
.admin-container,
.access-code-card,
#appointmentsList,
.login-card {
  width: min(100%, 1120px);
}

.booking-form-container,
.datetime-picker-container,
.admin-container,
.access-code-card,
#appointmentsList,
.login-card {
  margin-left: auto;
  margin-right: auto;
}

.booking-form-container form,
.booking-form,
form {
  width: min(100%, 720px);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.booking-form {
  font-size: 1rem;
}

.service-container {
  max-width: 760px;
}

.datetime-picker-container {
  flex-wrap: wrap;
}

.calendar-panel,
.time-panel {
  min-width: min(100%, 320px);
}

.access-code-screen {
  min-height: calc(100vh - 120px);
  padding: 24px;
}

.access-code-card {
  margin-bottom: 0 !important;
  padding: clamp(32px, 5vw, 64px);
}

.choice-buttons {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.choice-btn {
  justify-content: flex-start;
}

.login-page-container {
  display: flex;
  justify-content: center;
  margin: 24px auto 0;
  padding: 0 24px 40px;
}

.login-card {
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  padding: 32px;
}

.login-form,
.login-form_customer,
.reset-form {
  margin-top: 0;
  width: 100%;
}

.login-form form,
.login-form_customer form {
  width: 100%;
  max-width: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.login-form h1,
.login-form_customer h1,
.reset-form h1,
.access-code-card h1 {
  text-align: center;
  line-height: 1.1;
}

.login-form_customer p {
  text-align: center;
  color: #475569 !important;
  font-size: 1rem !important;
  line-height: 1.6;
}

.reset-form {
  align-items: center;
  text-align: center;
  padding: 0 24px 40px;
}

.reset-form p {
  max-width: 42rem;
  color: #475569;
}

.appointments-view-container {
  width: min(100%, 940px);
  margin: 24px auto 0 !important;
  padding: 0 24px 40px !important;
}

#appointmentsList {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 0;
}

.appointment-card {
  display: flex;
  gap: 18px;
  align-items: stretch;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.appointment-date-card {
  min-width: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f6ddd 0%, #0b4f96 100%);
  color: #ffffff;
  padding: 14px 10px;
  text-align: center;
}

.appointment-month,
.appointment-weekday {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.appointment-day {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}

.appointment-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.appointment-details h2 {
  font-size: 1.15rem;
  color: #0f172a;
}

.appointment-time,
.appointment-location {
  color: #475569;
}

.appointment-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.appointment-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.appointment-buttons span {
  display: inline-flex;
  align-items: center;
  color: #64748b;
  font-weight: 600;
  min-height: 44px;
}

.appointment-buttons button,
.reschedule-btn,
.cancel-btn {
  width: auto;
  min-width: 132px;
  padding: 11px 16px;
  border-radius: 12px;
}

.reschedule-btn {
  background: #e2e8f0;
  color: #0f172a;
  box-shadow: none;
}

.reschedule-btn:hover {
  background: #cbd5e1;
  transform: translateY(-1px);
}

.cancel-btn {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
}

.cancel-btn:hover {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.admin-cancel-btn {
  min-width: 108px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
}

.admin-complete-btn {
  min-width: 112px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
  margin-right: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
}

.admin-complete-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.booking-form-container,
.datetime-picker-container,
.admin-container,
.access-code-card,
.login-card,
.long_tile,
.need_help,
#appointmentsList {
  backdrop-filter: blur(6px);
}

button,
.help-button,
.btn-primary,
.choice-btn,
#logoutbutton {
  color: #ffffff;
}

@media (max-width: 1024px) {
  .main-content {
    margin-left: 24px;
    width: calc(100% - 48px);
  }

  .sidebar {
    position: static;
    width: auto;
    height: auto;
    min-height: 0;
    margin: 24px;
    border-radius: 22px;
  }
}

@media (max-width: 768px) {
  header.clinic-header,
  #side-MD-logo,
  #booking_header {
    width: calc(100% - 32px);
    padding: 0 16px;
  }

  .main-content {
    margin: 20px auto 0;
    width: calc(100% - 32px);
    padding: 0 16px 24px;
  }

  .appointment-card,
  .admin-header,
  .booking-form-container,
  .datetime-picker-container {
    flex-direction: column;
  }

  .appointment-date-card {
    width: 100%;
    min-width: 0;
  }

  .login-card,
  .access-code-card,
  .admin-container,
  #appointmentsList {
    width: calc(100% - 32px);
  }
}
