/* Appointment Scheduler Styles */

/* NEW: Main Page Layout (Stacked: Content Top, Scheduler Bottom) */
.appointment-page-wrapper {
  display: block; /* Stacked layout */
  max-width: 1000px;
  margin: 40px auto;
  background: #f1f1ed;
  border-radius: 8px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
  font-family: "Inter", sans-serif;
  overflow: hidden;
}

/* --- 1. Top Content Header Styles --- */
.appointment-content-header {
  padding: 40px 40px 20px 40px;
  background-color: #f1f1ed;
}

/* Top Row: Logo & Titles */
/* Top Row: Logo & Titles - Row Layout */
.header-top-row {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-logo img {
  max-height: 48px;
  margin-bottom: 0;
}

.header-avatar {
  width: 40px;
  height: 40px;
  background-color: #7b1fa2;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 0; /* Remove bottom margin */
  flex-shrink: 0;
}

.header-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* User wants "BoltOS Demo" (Company Name) to be the main text */
.company-name {
  font-size: 18px; /* Big like the screenshot */
  color: #202124;
  font-weight: 400; /* Regular weight */
  margin: 0;
  text-transform: none; /* Title Case */
  letter-spacing: 0;
  line-height: 1.2;
  font-family: "Standford font", Sans-serif; /* Match screenshot font */
}

/* Subtitle (Page Title) - Make it secondary */
.page-title {
  font-size: 24px;
  color: #080808;
  font-weight: 400;
  margin: 0;
  line-height: 1.4;
  font-family: "Standford font", Sans-serif;
  padding-bottom: 20px;
  text-transform: capitalize;
}


/* Info Row: Meta & Description (Two Columns) */
.header-info-row {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.header-meta {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.meta-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #5f6368;
  font-size: 16px;
  line-height: 1.5;
}

.meta-item .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
  color: #5f6368;
  margin-top: 2px;
}

.header-description {
  flex: 1;
  font-size: 16px;
  color: #202124;
  line-height: 1.6;
}

/* Divider */
.appointment-divider {
  border-top: 1px solid #dadce0;
  margin: 0;
}

/* --- 2. Main Scheduler Content --- */
.appointment-main-content {
  padding: 0;
}

.appointment-scheduler-wrapper {
  max-width: 100%;
  margin: 0;
  padding: 40px;
  box-shadow: none;
  background: transparent;
}

.appointment-scheduler-header {
  margin-bottom: 30px;
  align-items: center; /* Center align title row items? check screenshot 2 */
  /* Screenshot 2 has title left aligned "Select an appointment time" */
  display: flex;
  justify-content: space-between;
}

.appointment-title {
  font-size: 18px;
  font-weight: 400;
  color: #202124;
  margin: 0;
  font-family: "Standford font", Sans-serif;
}

/* Container Logic: Calendar Left, Slots Right */
.appointment-scheduler-container {
  display: flex;
  gap: 80px; /* Space between calendar and slots */
  flex-wrap: nowrap; /* Prevent wrapping on desktop */
}

/* Calendar Section */
.appointment-calendar-section {
  flex: 0 0 360px; /* Fixed width for calendar */
  min-width: 300px;
}

/* Time Slots Section */
.appointment-times-section {
  flex: 1;
  min-width: 300px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .appointment-page-wrapper {
    margin: 0;
    box-shadow: none;
    border-radius: 0;
  }
  
  .appointment-content-header {
    padding: 24px;
  }
  
  .header-info-row {
    flex-direction: column;
    gap: 24px;
  }
  
  .appointment-scheduler-wrapper {
    padding: 24px;
  }
  
  .appointment-scheduler-container {
    flex-direction: column;
    gap: 40px;
  }
  
  .appointment-calendar-section {
    width: 100%;
    flex: 1;
  }
}

/* --- EXISTING STYLES BELOW --- */

.appointment-timezone {
  font-size: 14px;
  color: #666;
  font-weight: 400;
}

/* Calendar Section */
.appointment-calendar-section {
  flex: 0 0 320px; /* Slightly smaller to fit */
  min-width: 280px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-nav-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #5f6368;
  cursor: pointer;
  padding: 0 10px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-nav-btn:hover {
  background-color: #f1f3f4;
}

.calendar-month-year {
  font-size: 16px;
  font-weight: 500;
  color: #202124;
  margin: 0;
}

.calendar-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 8px;
  text-align: center;
}

.calendar-days-header span {
  font-size: 11px;
  font-weight: 500;
  color: #70757a;
  text-transform: uppercase;
  padding: 6px 0;
  font-family: "Inter", sans-serif
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 10px;
  font-family: "Inter", sans-serif
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  position: relative;
  margin: 0 auto;
  width: 40px;
  height: 40px;
  font-family: "Inter", sans-serif;
 font-weight: 500;
}

.calendar-day .day-number {
  font-weight: 500;
  font-size: 14px;
  color: #3c4043;
  font-family: "Inter", sans-serif;
}

.calendar-day.available {
  background: #e8f0fe !important; /* Light blue background */
  color: #1967d2 !important;
  font-size: 12px;
  font-family: "Inter", sans-serif;
   font-weight: 500;
}

.calendar-day.available .day-number {
  color: #1967d2 !important;
  font-weight: 500;
   font-size: 13px;
   font-family: "Inter", sans-serif;
}

.calendar-day.available:hover {
  background: #E3E0D4 !important; /* Slightly darker hover */
}
.calendar-day.available:hover .day-number {
  color: #FFF !important;
}

.calendar-day.selected {
  background: #3D3929 !important; /* Google Blue */
  color: #fff !important;
}

.calendar-day.selected .day-number {
  color: #fff !important;
  font-family: "Inter", sans-serif;
   font-weight: 500;
}

.calendar-day.past {
  color: #ccc;
  cursor: default;
  font-family: "Inter", sans-serif;
   font-weight: 500;
}

.calendar-day.other-month .day-number {
  color: #dadce0;
  font-family: "Inter", sans-serif;
   font-weight: 500;
}

/* Time Slots Section */
.appointment-times-section {
  flex: 1;
  min-width: 200px;
  font-family: "Inter", sans-serif;
   font-weight: 500;
}

.times-header {
  display: none; /* Hide days nav, list vertically */
}

.times-slots-container {
  display: flex;
  flex-direction: column; /* Vertical list */
  gap: 12px;
  padding-top: 10px;
  max-height: 400px;
  overflow-y: auto;
  font-family: "Inter", sans-serif;
}

.time-slot {
  padding: 12px 16px !important;
  border: 1px solid #dadce0 !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #3D3929 !important; /* Blue text */
  cursor: pointer !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  width: 100% !important;
  transition: all 0.2s;
  font-family: "Inter", sans-serif;
}

.time-slot:hover {
  background: #f1f3f4 !important;
  border-color: #1967d2 !important;
  border-width: 2px !important;
  padding: 11px 15px !important; /* Adjust for border width change */
  transform: none !important;
  box-shadow: none !important;
}

.time-slot.selected {
  background: #3D3929 !important;
  color: #fff !important;
  border-color: #3D3929 !important;
  font-family: "Inter", sans-serif
}

/* Modal Styles - Keep mostly same but cleaner */
.appointment-modal-content {
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  padding: 40px;
  font-family: "Inter", sans-serif
}

.appointment-modal-content h3 {
  font-family: "Google Sans", sans-serif;
  color: #202124;
}

.btn-submit {
  background: #1a73e8 !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 24px !important;
  font-weight: 500 !important;
  border-radius: 4px !important;
  font-family: "Standford font", Sans-serif;
}

.btn-submit:hover {
  background: #185abc !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Helper message */
.form-message {
  border-radius: 4px;
}
/* Multi-Day View Columns */
.time-slots-grid-3-cols {
  display: flex;
  gap: 20px;
  height: 480px; /* Fixed height container */
  overflow-y: hidden; /* Hide main scroll */
}

.day-column {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.column-header {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #5f6368;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 5px;
}

.column-slots {
  flex: 1;
  overflow-y: auto; /* Scroll per column? Or single scroll? Screenshot 3 shows ONE scrollbar on the right. */
  /* If one scrollbar, then overflow should be on .time-slots-grid-3-cols, but columns need to move together. */
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
}

/* Adjust grid for single scrollbar */
.time-slots-grid-3-cols {
  /* Override previous */
  overflow-y: auto; /* Scrollbar on container */
}
/* But column-slots shouldn't scroll independently if we want one scrollbar. */
.column-slots {
  overflow-y: visible;
}

/* Bubble Style for Slots */
.time-slot {
  width: 100% !important;
  border-radius: 50px !important; /* Full rounded pill */
  text-align: center !important;
  padding: 10px 0 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border: 1px solid #dadce0 !important;
  color: #3D3929 !important;
  background: #fff !important;
  transition: all 0.2s ease;
  cursor: pointer;
}

.time-slot:hover {
  background-color: #f1f3f4 !important;
  border-color: #1967d2 !important;
  border-width: 1px !important; /* Keep same width */
  padding: 10px 0 !important;
}

.time-slot.selected {
  background-color: #3D3929 !important;
  color: #fff !important;
  border-color: #1967d2 !important;
}

.no-slots {
  text-align: center;
  color: #bdc1c6;
  padding: 20px 0;
}

/* Scrollbar styling */
.time-slots-grid-3-cols::-webkit-scrollbar {
  width: 8px;
}
.time-slots-grid-3-cols::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.time-slots-grid-3-cols::-webkit-scrollbar-thumb {
  background: #dadce0;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .time-slots-grid-3-cols {
    flex-direction: column;
    height: auto;
  }
}


/* --- Modal & Form Styles (Fixed) --- */
.appointment-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5); /* Darker overlay */
  backdrop-filter: blur(2px);
  align-items: center; /* Flex center */
  justify-content: center; /* Flex center */
}

.appointment-modal.show {
  display: flex !important;
}

.appointment-modal-content {
  background-color: #fff;
  margin: auto;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  width: 90%; 
  max-width: 480px; /* Keep it compact */
  position: relative;
  text-align: left;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.appointment-modal h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 20px;
  color: #202124;
  font-family: inherit;
  font-weight: 500;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #3c4043;
  font-size: 14px;
}

/* Form Inputs */
.appointment-modal input[type="text"],
.appointment-modal input[type="email"],
.appointment-modal textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dadce0;
  border-radius: 6px;
  font-size: 14px;
  color: #3c4043;
  box-sizing: border-box; /* Important used */
  transition: border-color 0.2s;
  font-family: inherit;
}

.appointment-modal input:focus,
.appointment-modal textarea:focus {
  border-color: #1a73e8;
  outline: none;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.appointment-modal textarea {
  resize: vertical;
  min-height: 80px;
}

/* Buttons */
.form-actions {
  display: flex;
  justify-content: flex-end; /* Right align buttons */
  gap: 12px;
  margin-top: 24px;
}

.btn-submit {
  background-color: #1a73e8;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: background 0.2s;
}

.btn-submit:hover {
  background-color: #1558d6;
}

.btn-cancel {
  background-color: transparent;
  color: #5f6368;
  border: 1px solid #dadce0;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
}

.btn-cancel:hover {
  background-color: #f1f3f4;
  color: #202124;
}

.appointment-modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  color: #5f6368;
  font-size: 24px;
  font-weight: normal;
  cursor: pointer;
  line-height: 1;
}

/* Booked Status (Small Override) */
.time-slot.booked {
  background: #3D3929 !important;
  color: #fff !important;
  font-size: 10px !important;
  text-wrap: nowrap;
  padding: 14px !important;
}

.time-slot.closed {
  background: #f8f9fa !important;
  color: #70757a !important;
  cursor: not-allowed !important;
  border-color: #dadce0 !important;
  font-size: 11px !important;
}

.calendar-day.closed {
  background: #f1f3f4 !important;
  color: #bdc1c6;
  cursor: default;
}

/* Admin Dashboard Status Badges */
.appointment-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
}

.status-booked {
  background-color: #e6f4ea;
  color: #137333;
}

.status-cancelled {
  background-color: #fce8e6;
  color: #c5221f;
}

.status-cancellation_requested {
  background-color: #fef7e0;
  color: #b06000;
  border: 1px solid #f9ab00;
}

