/* Music Recording Studio Booking - Frontend Styles */

:root {
  --mrsb-primary: #1a1a1a;
  --mrsb-secondary: #2d2d2d;
  --mrsb-accent: #d4af37;
  --mrsb-accent-hover: #b8941f;
  --mrsb-success: #10b981;
  --mrsb-warning: #f59e0b;
  --mrsb-error: #ef4444;
  --mrsb-text: #ffffff;
  --mrsb-text-muted: #a1a1aa;
  --mrsb-border: #404040;
  --mrsb-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  --mrsb-radius: 12px;
  --mrsb-spacing: 1.5rem;
}

/* Booking Container */
.mrsb-booking-container {
  max-width: 1600px;
  width: 100%;
  margin: 0;
  padding: 0rem;
  background: #000000 !important;
  border-radius: var(--mrsb-radius);
  box-shadow: var(--mrsb-shadow);
  color: var(--mrsb-text);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.mrsb-booking-header {
  text-align: center;
  margin-bottom: 3rem;
}

.mrsb-booking-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #5200ff 0%, #f43fde 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mrsb-studio-description {
  font-size: 1.1rem;
  color: var(--mrsb-text-muted);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Calendar Styles */
.mrsb-calendar-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--mrsb-radius);
  padding: 0;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid var(--mrsb-border);
}

#mrsb-calendar {
  background: transparent;
  border-radius: var(--mrsb-radius);
  overflow: hidden;
}

/* Calendar Loading Spinner */
.mrsb-calendar-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
  color: var(--mrsb-text-muted);
}

.mrsb-calendar-loading .mrsb-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--mrsb-border);
  border-top: 4px solid var(--mrsb-accent);
  border-radius: 50%;
  animation: mrsb-spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes mrsb-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.fc {
  background: transparent !important;
}

/* Modern Calendar Styling - Unified for all calendars */
.fc-theme-standard {
  background: #000000 !important;
  border-radius: 12px !important;
  padding: 4px !important;
  border: 1px solid #000000 !important;
}

.fc-theme-standard .fc-scrollgrid {
  border: none !important;
  background: transparent !important;
}

.fc-theme-standard .fc-scrollgrid-section-header td,
.fc-theme-standard .fc-scrollgrid-section-body td {
  border-color: #020202 !important;
}

.fc-header-toolbar {
  margin-bottom: 24px !important;
  padding: 16px 0 !important;
  border-bottom: 1px solid #070707 !important;
}
.fc .fc-button .fc-icon {
  font-size: 1.5em;
  vertical-align: middle;
  background: #1a1a1a !important;
}
.fc-toolbar-title {
  color: #fff !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
}
.fc .fc-button-primary {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
  color: #ffffff;
}
.fc-button {
  background: #1a1a1a !important;
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: all 0.2s ease !important;
}

.fc-button:hover {
  background: #252525 !important;
  border-color: #444 !important;
  transform: translateY(-1px);
}

.fc-button-active {
  background: #EF4444 !important;
  border-color: #EF4444 !important;
  color: #fff !important;
}

.fc-button-primary:not(:disabled):active,
.fc-button-primary:not(:disabled).fc-button-active {
  background: #442b79 !important;
  border-color: #442b79 !important;
}

.fc-col-header-cell {
  color: #888 !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  padding: 4px !important;
  border-color: #2a2a2a !important;
}

.fc-daygrid-day {
  background: #0a0a0a !important;
  border-color: #2a2a2a !important;
}

.fc-daygrid-day:hover {
  background: #151515 !important;
}

.fc-daygrid-day.fc-day-today {
  background: #1a1a1a !important;
}

.fc-daygrid-day-number {
  color: #fff !important;
  font-weight: 600 !important;
  padding: 8px !important;
}

.fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
  color: #EF4444 !important;
  font-weight: 700 !important;
}

.fc-daygrid-day-top {
  padding: 4px 8px !important;
}

.fc-event {
  border: none !important;
  border-radius: 6px !important;
  padding: 4px 8px !important;
  margin: 2px 0 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.fc-event:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important;
}

.fc-event-title {
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  line-height: 1.4 !important;
}

.fc-timegrid-slot {
  border-color: #2a2a2a !important;
  height: 60px !important;
}

.fc-timegrid-slot.fc-timegrid-slot-lane {
  background-color: rgba(16, 185, 129, 0.05) !important; /* Very light green tint for available slots */
}

/* Selected/clicked date styling */
.fc-daygrid-day.fc-day-selected,
.fc-daygrid-day:not(.fc-day-disabled):not(.fc-day-other).fc-highlight {
  background: #b34c99 !important;
  border-color: #b34c99 !important;
  box-shadow: inset 0 0 0 2px #b34c99 !important;
}

.fc-daygrid-day.fc-day-selected .fc-daygrid-day-number,
.fc-daygrid-day:not(.fc-day-disabled):not(.fc-day-other).fc-highlight .fc-daygrid-day-number {
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* Form validation error styling */
.mrsb-form input.mrsb-error,
.mrsb-form select.mrsb-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.fc-timegrid-slot-label {
  color: #888 !important;
  font-size: 0.75rem !important;
  padding: 4px 8px !important;
}

.fc-timegrid-col {
  border-color: #2a2a2a !important;
}

.fc-timegrid-event {
  border-radius: 6px !important;
  padding: 4px 8px !important;
  margin: 2px 4px !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.fc-timegrid-event:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important;
}

.fc-timegrid-event .fc-event-title {
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  padding: 2px 0 !important;
}

.fc-timegrid-now-indicator-line {
  border-color: #EF4444 !important;
  border-width: 2px !important;
}

.fc-timegrid-now-indicator-arrow {
  border-color: #EF4444 !important;
}

.fc-daygrid-event {
  border-radius: 4px !important;
  padding: 2px 6px !important;
  margin: 1px 0 !important;
}

.fc-daygrid-event:hover {
  transform: translateY(-1px);
}

.fc-daygrid-event-dot {
  display: none !important;
}

.fc-more-link {
  color: #888 !important;
  font-size: 0.75rem !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  background: #1a1a1a !important;
  border: 1px solid #2a2a2a !important;
}

.fc-more-link:hover {
  background: #252525 !important;
  color: #fff !important;
}

/* Calendar in booking form */
.mrsb-calendar-section {
  position: relative;
  background: #000000 !important;
  border-radius: 12px !important;
  padding: 0 !important;
  border: 1px solid #2a2a2a !important;
}

/* Dashboard calendar */
#mrsb-dashboard-calendar {
  background: #1a1a1a !important;
  border-radius: 12px !important;
  padding: 20px !important;
  border: 1px solid #2a2a2a !important;
}

/* Admin calendar */
#mrsb-admin-calendar {
  background: #1a1a1a !important;
  border-radius: 12px !important;
  padding: 20px !important;
  border: 1px solid #2a2a2a !important;
}

/* Responsive calendar */
@media (max-width: 768px) {
  .fc-toolbar {
    flex-direction: column !important;
    gap: 12px !important;
  }
  
  .fc-toolbar-title {
    font-size: 1.2rem !important;
  }
  
  .fc-button {
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
  }
}

/* mobile toggle visibility and positioning handled further down (no duplicates) */

/* Collapsed footer: hide name and arrow, keep avatar centered */
.mrsb-modern-dashboard.mrsb-sidebar-collapsed .mrsb-sidebar-footer > div { justify-content:center !important; }
.mrsb-modern-dashboard.mrsb-sidebar-collapsed .mrsb-sidebar-footer > div > div:nth-child(2) { display:none !important; }
.mrsb-modern-dashboard.mrsb-sidebar-collapsed .mrsb-sidebar-footer > div > span { display:none !important; }

/* Responsive tables for bookings/customers/studios - keep table semantics but prevent wrapping */
.mrsb-view-bookings table,
.mrsb-view-customers table,
.mrsb-view-studios table {
  width: 100% !important;
  table-layout: auto !important;
  border-collapse: collapse !important;
}
.mrsb-view-bookings table th,
.mrsb-view-customers table th,
.mrsb-view-studios table th,
.mrsb-view-bookings table td,
.mrsb-view-customers table td,
.mrsb-view-studios table td {
  white-space: nowrap !important;
}
/* Make parent wrapper horizontally scrollable when needed (there's an overflow-x:auto inline wrapper already) */

/* Reduce padding of view containers on small screens for better fit */
@media (max-width: 768px) {
  .mrsb-dashboard-main .mrsb-view-dashboard > div,
  .mrsb-dashboard-main .mrsb-view-calendar > div,
  .mrsb-dashboard-main .mrsb-view-bookings > div,
  .mrsb-dashboard-main .mrsb-view-customers > div,
  .mrsb-dashboard-main .mrsb-view-studios > div {
    padding: 0px !important;
  }
  .mrsb-admin-dashboard-grid { grid-template-columns: 1fr !important; }
  .mrsb-revenue-stats { grid-template-columns: 1fr !important; }
  .mrsb-admin-dashboard-grid .dashboard-card, .mrsb-revenue-stats .dashboard-card { padding:12px !important; }
  .mrsb-view-bookings table th, .mrsb-view-bookings table td { padding:8px !important; font-size:0.85rem !important;}
}

/* Ensure calendar occupies full width and scales on mobile */
#mrsb-dashboard-calendar { width: 100% !important; }
.mrsb-dashboard-main #mrsb-dashboard-calendar .fc { width:100% !important; }

/* Responsive calendar tweaks for small screens */
@media (max-width: 480px) {
  /* Reduce header and day label sizes */
  .fc .fc-toolbar-title {
    font-size: 1.75em;
    margin: 0px;
    background: #000 !important;
    text-align: center;
}
  .fc .fc-col-header-cell { font-size: 11px !important; padding:4px !important; }
  .fc .fc-daygrid-day-number { font-size: 12px !important; padding:2px !important; cursor: pointer;}
  .fc .fc-daygrid-day-frame { min-height: 64px !important; }
  .fc .fc-daygrid-event, .fc .fc-timegrid-event { font-size: 12px !important; padding:4px 6px !important; }
  /* Make calendar cells more compact but readable */
  #mrsb-dashboard-calendar { padding:8px !important; }
}
.fc-timegrid-event-harness > .fc-timegrid-event {
  inset: 0px;
  position: absolute;
  display: contents;
}
.fc .fc-col-header-cell-cushion {
  display: inline-block;
  padding: 2px 2px;
  cursor: pointer;
}
.fc .fc-toolbar.fc-header-toolbar {
  padding: 4px !important;
  background: #000 !important;
  border: none !important;
}
.fc .fc-button-primary:not(:disabled).fc-button-active:focus, .fc .fc-button-primary:not(:disabled):active:focus {
  box-shadow: rgb(179 76 153) 0px 0px 0px 0.2rem;
  background: #b34c99 !important;
  margin: 5px;
}
/* Table responsiveness: on small screens allow wrapping inside cells but prefer horizontal scroll */
@media (max-width: 768px) {
  .mrsb-view-bookings > div, .mrsb-view-customers > div, .mrsb-view-studios > div {
    overflow-x: auto !important;
  }
  .mrsb-view-bookings table, .mrsb-view-customers table, .mrsb-view-studios table {
    min-width: 640px; /* allow horizontal scrolling instead of squashing columns */
  }
  .mrsb-view-bookings table th, .mrsb-view-bookings table td,
  .mrsb-view-customers table th, .mrsb-view-customers table td,
  .mrsb-view-studios table th, .mrsb-view-studios table td {
    white-space: normal !important;
    word-break: break-word !important;
    font-size: 0.9rem !important;
    padding: 8px !important;
  }
}

/* Modern Dashboard Sidebar Styles */
.mrsb-modern-dashboard {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

.mrsb-dashboard-sidebar {
  transition: width 0.3s ease, left 0.25s ease;
  border-radius: 1rem;
}

/* Collapsed sidebar state (desktop): narrow sidebar showing icons only */
.mrsb-modern-dashboard.mrsb-sidebar-collapsed .mrsb-dashboard-sidebar {
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
}
.mrsb-modern-dashboard.mrsb-sidebar-collapsed .mrsb-nav-item {
  justify-content: center;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.mrsb-modern-dashboard.mrsb-sidebar-collapsed .mrsb-nav-item span:last-child {
  display: none !important; /* hide text labels */
}
.mrsb-modern-dashboard.mrsb-sidebar-collapsed .mrsb-dashboard-main {
  padding-left: 12px !important;
}

/* When collapsed (desktop): hide header text and show icons only */
.mrsb-modern-dashboard.mrsb-sidebar-collapsed .mrsb-sidebar-header h2,
.mrsb-modern-dashboard.mrsb-sidebar-collapsed .mrsb-nav-label,
.mrsb-modern-dashboard.mrsb-sidebar-collapsed .mrsb-sidebar-footer > div > div > div > div:nth-child(2) {
  display: none !important;
}
.mrsb-modern-dashboard.mrsb-sidebar-collapsed .mrsb-sidebar-header { padding: 12px !important; }
.mrsb-modern-dashboard.mrsb-sidebar-collapsed .mrsb-nav-item { padding: 12px 8px !important; justify-content: center; }
.mrsb-modern-dashboard.mrsb-sidebar-collapsed .mrsb-nav-item span:first-child { margin-right: 0 !important; }

/* Dashboard view show/hide helpers */
.mrsb-view-dashboard,
.mrsb-view-calendar,
.mrsb-view-bookings,
.mrsb-view-customers,
.mrsb-view-studios {
  display: none;
}
.mrsb-view-active {
  display: block !important;
}

.mrsb-dashboard-sidebar:hover {
  box-shadow: 2px 0 8px rgba(0,0,0,0.3);
}

.mrsb-nav-item {
  transition: all 0.2s ease;
}

.mrsb-nav-item:hover {
  background: rgba(255,255,255,0.05);
}

.mrsb-nav-item.active {
  background: rgb(125 125 125 / 10%);
  border-radius: 0.25rem;
  margin: 0.1rem;
}

.mrsb-sidebar-footer {
  margin-top: auto;
}

.mrsb-sidebar-footer > div:hover {
  background: #2a2a2a !important;
}

/* Dashboard Main Content */
.mrsb-dashboard-main {
  background: #0a0a0a;
}

/* Dashboard Stats Cards */
.mrsb-admin-dashboard-grid .dashboard-card,
.mrsb-revenue-stats .dashboard-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mrsb-admin-dashboard-grid .dashboard-card:hover,
.mrsb-revenue-stats .dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

/* Dashboard Tables */
.mrsb-view-bookings table tr:hover {
  background: #252525 !important;
}

.mrsb-view-bookings table th {
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.75rem;
}

/* Booking Edit Modal */
#mrsb-edit-booking-modal {
  backdrop-filter: blur(4px);
}

#mrsb-edit-booking-modal > div {
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#mrsb-edit-booking-modal input,
#mrsb-edit-booking-modal select,
#mrsb-edit-booking-modal textarea {
  transition: all 0.2s ease;
}

#mrsb-edit-booking-modal input:focus,
#mrsb-edit-booking-modal select:focus,
#mrsb-edit-booking-modal textarea:focus {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

#mrsb-edit-booking-modal button[type="submit"] {
  transition: all 0.2s ease;
}

#mrsb-edit-booking-modal button[type="submit"]:hover {
  background: #DC2626 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(239,68,68,0.3);
}

/* Form Styles */
.mrsb-booking-form-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--mrsb-radius);
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid var(--mrsb-border);
  animation: fadeInUp 0.6s ease;
}

.mrsb-form {
  display: grid;
  gap: var(--mrsb-spacing);
}

.mrsb-form-group {
  display: flex;
  flex-direction: column;
}

.mrsb-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--mrsb-spacing);
}

.mrsb-form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--mrsb-text);
  font-size: 0.95rem;
}

.mrsb-form-group input,
.mrsb-form-group select,
.mrsb-form-group textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--mrsb-border);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  color: var(--mrsb-text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.mrsb-form-group input:focus,
.mrsb-form-group select:focus,
.mrsb-form-group textarea:focus {
  outline: none;
  border-color: var(--mrsb-accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
  background: rgba(255, 255, 255, 0.12);
}

.mrsb-form-group input::placeholder,
.mrsb-form-group textarea::placeholder {
  color: var(--mrsb-text-muted);
}

/* Booking Summary */
.mrsb-booking-summary {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--mrsb-accent);
  border-radius: var(--mrsb-radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.mrsb-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.mrsb-summary-row:last-child {
  border-bottom: none;
}

.mrsb-summary-row.mrsb-total {
  font-weight: 700;
  font-size: 1.1rem;
  padding-top: 1rem;
  border-top: 2px solid #b55097;
  margin-top: 0.5rem;
}

/* Payment Section */
.mrsb-payment-section {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--mrsb-radius);
  padding: 2rem;
  border: 1px solid var(--mrsb-border);
}

.mrsb-payment-section h3 {
  color: var(--mrsb-text);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.mrsb-card-element {
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--mrsb-border);
  margin-bottom: 1rem;
}

.mrsb-card-errors {
  color: var(--mrsb-error);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Submit Button */
.mrsb-submit-btn {
  background: linear-gradient(135deg, #442b79 0%, #6441ad 100%);
  color: var(--mrsb-text);
  border: none;
  border-radius: var(--mrsb-radius);
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mrsb-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(185, 86, 147, 0.171);
}

.mrsb-submit-btn:active {
  transform: translateY(0);
}

.mrsb-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.mrsb-credit-card-icon {
  margin-right: 8px;
  font-size: 1.3em;
  vertical-align: middle;
  display: inline-block;
  line-height: 1;
}

.mrsb-btn-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

/* Loading Spinner */
.mrsb-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(26, 26, 26, 0.3);
  border-top: 3px solid var(--mrsb-primary);
  border-radius: 50%;
  animation: mrsbSpin 1s linear infinite;
}

@keyframes mrsbSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Success Message */
.mrsb-success-message {
  text-align: center;
  padding: 3rem;
  animation: fadeInUp 0.8s ease;
}

.mrsb-success-content {
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid var(--mrsb-success);
  border-radius: var(--mrsb-radius);
  padding: 3rem;
  display: inline-block;
  min-width: 400px;
}

.mrsb-success-icon {
  width: 80px;
  height: 80px;
  background: var(--mrsb-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin: 0 auto 1.5rem;
  animation: bounceIn 0.8s ease;
}

.mrsb-success-content h3 {
  color: var(--mrsb-success);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.mrsb-success-content p {
  color: var(--mrsb-text-muted);
  font-size: 1rem;
  line-height: 1.6;
}
.has-global-padding {
  padding-right: 5px;
  padding-left: 5px;
}
/* Responsive Design */
@media (max-width: 768px) {
  .mrsb-booking-container {
    padding: 1rem;
    margin: 1rem;
    border-radius: 8px;
  }
  
  .mrsb-booking-header h2 {
    font-size: 2rem;
  }
  
  .mrsb-form-row {
    grid-template-columns: 1fr;
  }
  
  .mrsb-calendar-section,
  .mrsb-booking-form-container {
    padding: 0;
  }
  
  .mrsb-success-content {
    min-width: auto;
    width: 100%;
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .mrsb-booking-container {
    padding: 0;
    margin: 0.5rem;
  }
  
  .mrsb-booking-header h2 {
    font-size: 1.75rem;
  }
  
  .mrsb-calendar-section,
  .mrsb-booking-form-container {
    padding: 1rem;
  }
  
  .mrsb-submit-btn {
    padding: 14px 24px;
    font-size: 1rem;
    max-width: 100%;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Calendar Standalone */
.mrsb-calendar-standalone {
  background: var(--mrsb-primary);
  border-radius: var(--mrsb-radius);
  padding: 2rem;
  box-shadow: var(--mrsb-shadow);
}

/* Time Slot Selection */
.mrsb-time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.mrsb-time-slot {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--mrsb-border);
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--mrsb-text);
}

.mrsb-time-slot:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--mrsb-accent);
  transform: translateY(-1px);
}

.mrsb-time-slot.selected {
  background: var(--mrsb-accent);
  color: var(--mrsb-primary);
  border-color: var(--mrsb-accent);
  font-weight: 600;
}

.mrsb-time-slot.unavailable {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--mrsb-error);
}

.mrsb-time-slot.unavailable:hover {
  transform: none;
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--mrsb-error);
}

/* Loading States */
.mrsb-loading {
  text-align: center;
  padding: 2rem;
  color: var(--mrsb-text-muted);
}

.mrsb-loading-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--mrsb-border);
  border-top: 3px solid var(--mrsb-accent);
  border-radius: 50%;
  animation: mrsbSpin 1s linear infinite;
  margin-right: 0.5rem;
}

/* Error Messages */
.mrsb-error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--mrsb-error);
  border-radius: 8px;
  padding: 1rem;
  color: var(--mrsb-error);
  margin-bottom: 1rem;
  text-align: center;
}

/* Accessibility */
.mrsb-form-group input:focus,
.mrsb-form-group select:focus,
.mrsb-form-group textarea:focus {
  outline: 2px solid var(--mrsb-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --mrsb-primary: #000000;
    --mrsb-secondary: #1a1a1a;
    --mrsb-text: #ffffff;
    --mrsb-border: #666666;
  }
}

/* Frontend: ensure dropdowns and inputs are readable on light backgrounds in the booking form */
.mrsb-booking-container select, .mrsb-booking-container input, .mrsb-booking-container textarea {
  color: #111;
  background-color: #fff;
}

/* Language pill switcher styling */
.mrsb-lang-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 20px;
  padding: 8px 14px;
  margin-left: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}
.mrsb-lang-pill:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-1px);
}
.mrsb-lang-pill.active {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.7);
  box-shadow: 0 2px 8px rgba(255,255,255,0.1);
}
.mrsb-lang-pill:focus {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 2px;
}
.mrsb-lang-flag {
  font-size: 1.1em;
  line-height: 1;
}
.mrsb-lang-code {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Admin calendar card for frontend view */
#mrsb-admin-frontend-calendar { border: 1px solid var(--mrsb-border); border-radius: 8px; padding: 1rem; background: rgba(255,255,255,0.04); margin: 1rem 0; }

/* Dark theme adjustments for booking UI */
.mrsb-booking-container[data-theme="dark"] {
  background: #1a1a1a;
  color: #eaeaea;
}
.mrsb-booking-container[data-theme="dark"] .mrsb-studio-description {
  color: #cbd5e1;
}
/* Studio grid cards (modern look) */
.mrsb-studio-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mrsb-studio-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.mrsb-studio-card.active {
  outline: 1px solid #442b79;
}
.mrsb-studio-card img.mrsb-studio-preview {
  width: 100%; height: auto; border-radius: 6px; display: block; margin: 0 auto 6px;
}
.mrsb-studio-image-wrap { max-width: 240px; margin: 0 auto 10px; overflow: hidden; border-radius: 8px; }
.mrsb-studio-thumb-img { width: 100%; height: 120px; object-fit: cover; display: block; border-radius:6px; }
.mrsb-studio-image-wrap { position:relative; overflow:hidden; border-radius:6px; }
.mrsb-enlarge-btn {
  position:absolute; right:8px; bottom:8px;
  background:rgba(0,0,0,0.7); color:#fff; border:none; padding:8px 12px; border-radius:8px;
  cursor:pointer; font-size:16px; opacity:1; pointer-events:auto;
  z-index:10; transition:all 0.14s ease;
  min-width: 36px; min-height: 36px;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.mrsb-enlarge-btn:hover {
  background:rgba(0,0,0,0.9);
  transform: scale(1.1);
}
/* Lightbox overlay styling update */
#mrsb-image-lightbox { display:none; align-items:center; justify-content:center; }
#mrsb-image-lightbox img {
  max-width:96vw; max-height:60vh; display:block;
  margin:auto; object-fit:contain;
  border-radius:6px; box-shadow:0 6px 24px rgba(0,0,0,0.5);
}
#mrsb-image-lightbox .mrsb-lightbox-close {
  position:absolute;right:-10px;top:-10px;background:#fff;border-radius:20px;padding:6px;border:none;cursor:pointer;font-size:18px;line-height:1;z-index:10;
}
.mrsb-studio-name { font-weight: 700; margin-top: 4px; }
.mrsb-studio-desc { font-size: 0.9rem; color: var(--mrsb-text-muted); min-height: 2em; }
.mrsb-studio-price { margin-top: 6px; font-weight: 600; color: #e6e6e6; }
.mrsb-studio-room-selector { text-align: left; }
.mrsb-studio-room-selector label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--mrsb-text); }
.mrsb-studio-room-selector select { width: 100%; padding: 8px; border-radius: 6px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); color: #fff; font-size: 0.9rem; }
.mrsb-studio-room-selector select:focus { outline: none; border-color: var(--mrsb-accent); box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2); }
.mrsb-studio-room-selector small { display: block; color: var(--mrsb-text-muted); font-size: 0.85rem; margin-top: 4px; }
/* Placeholder for no image in grid */
.mrsb-studio-placeholder { width: 100%; height: 120px; display: inline-block; background: #555; border-radius: 6px; color: #ddd; line-height: 120px; }
/* Frontend: ensure all selects/inputs show on dark background legibly */
.mrsb-booking-container .regular-text, .mrsb-booking-container select, .mrsb-booking-container input, .mrsb-booking-container textarea {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}

/* Studio Images help icon (tooltip) */
.mrsb-help-icon {
  display: inline-block;
  margin-left: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #555;
  color: #fff;
  text-align: center;
  line-height: 20px;
  font-size: 12px;
  cursor: default;
}
.mrsb-help-icon:hover, .mrsb-help-icon:focus {
  background: #777;
}

/* Add responsive two-column layout for booking page */
.mrsb-two-col-layout {
    display: grid;
    /* left: calendar + studio list, right: booking form */
    grid-template-columns: 62% 36%;
    gap: 2.5rem;
    align-items: start;
}

/* Light booking theme (public) */
.mrsb-booking-container[data-theme="dark"] {
  background: linear-gradient(0deg, #0f1720 0%, #0b0d0f 100%);
  color: #eaeaea;
}
.mrsb-booking-container[data-theme="dark"] .mrsb-calendar-section {
  background: linear-gradient(180deg, #4f126721 0%, #000000 100%);
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  color: #e6e6e6;
}
.mrsb-booking-container[data-theme="dark"] .mrsb-booking-form-container {
  background: rgba(15,16,17,0.75);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.03);
}
.mrsb-booking-container[data-theme="dark"] .mrsb-studio-card { background: #000000 !important; border-radius: 12px; }
.mrsb-booking-container[data-theme="dark"] .mrsb-studio-name{ color:#818181; }

/* Booking right side floating summary panel */
.mrsb-booking-form-container { position:relative; max-width:420px; }
.mrsb-booking-summary { position: sticky; top: 24px; }

/* Admin dashboard (dark) refinements to match screenshot */
.mrsb-admin-dashboard { background: #0b0b0b; border-radius: 16px; padding: 20px; box-shadow: 0 12px 30px rgba(0,0,0,0.6); }
.mrsb-admin-dashboard-grid { display:grid; grid-template-columns: repeat(4,1fr); gap:18px; }
.mrsb-admin-dashboard-grid .dashboard-card { padding:22px; border-radius:12px; background:#0f1011; border:1px solid rgba(255,255,255,0.03); box-shadow: 0 6px 18px rgba(0,0,0,0.6); }
.mrsb-admin-dashboard-grid .dashboard-card div { color:#dfe6ea; }
.mrsb-admin-dashboard-grid .dashboard-card .dashboard-value { font-size:30px; font-weight:800; color:#ffffff; margin-top:8px; }

/* Mobile responsive dashboard grid */
@media (max-width: 1024px) {
  .mrsb-admin-dashboard-grid { grid-template-columns: repeat(2,1fr) !important; gap: 16px !important; }
  .mrsb-admin-dashboard-grid .dashboard-card { padding: 18px !important; }
  .mrsb-admin-dashboard-grid .dashboard-card .dashboard-value { font-size: 24px !important; }
}

@media (max-width: 768px) {
  .mrsb-admin-dashboard-grid { grid-template-columns: repeat(2,1fr) !important; gap: 14px !important; }
  .mrsb-admin-dashboard-grid .dashboard-card { padding: 16px !important; }
  .mrsb-admin-dashboard-grid .dashboard-card .dashboard-value { font-size: 20px !important; }
}

@media (max-width: 480px) {
  .mrsb-admin-dashboard-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .mrsb-admin-dashboard-grid .dashboard-card { padding: 14px !important; text-align: center !important; }
  .mrsb-admin-dashboard-grid .dashboard-card .dashboard-value { font-size: 18px !important; }
}

/* Dashboard calendar legend mobile responsiveness */
@media (max-width: 768px) {
  #mrsb-dashboard-calendar-legend .legend-item {
    flex: 1 1 45%;
    min-width: 120px;
  }

  #mrsb-dashboard-calendar-legend-items {
    gap: 8px !important;
  }
}

@media (max-width: 480px) {
  #mrsb-dashboard-calendar-legend .legend-item {
    flex: 1 1 100%;
    justify-content: center;
  }

  #mrsb-dashboard-calendar-legend h4 {
    text-align: center;
  }
}

/* Make calendar cards and events look lighter on the public booking page */

/* Pixel-perfect adjustments to match provided booking screenshots */
.mrsb-booking-header h2 { font-family: 'Montserrat', 'Segoe UI', sans-serif; font-weight:800; font-size:34px; color:#f8e39a; text-align:center; margin-bottom:18px; }
.mrsb-calendar-section { border-radius:24px; padding:0; max-width:100%; margin:0 auto; }
.mrsb-calendar-section .fc { border-radius:14px; overflow:hidden; }

/* Ensure calendar does not stretch full height and keeps aspect */
#mrsb-calendar { max-width: 760px; margin: 0 auto; }
#mrsb-calendar .fc { height: auto !important; }
.fc .fc-toolbar-chunk { display:flex; align-items:center; gap:10px; background: #000 !important;}
/* Day number styles consolidated in Modern Calendar Styling section above */

/* Floating booking detail card that overlays calendar on selection (positioned above event) */
.mrsb-floating-details {
  position:absolute;
  width: 320px;
  background:#0f0f0f; border-radius:12px; padding:14px; box-shadow:0 12px 30px rgba(0,0,0,0.35);
  z-index:50;
  pointer-events: auto;
}

/* Calendar Legend */
.mrsb-calendar-legend {
  margin-top: 20px;
  padding: 16px;
  background: #1a1a1a;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
}

.mrsb-legend-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #888;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mrsb-legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.mrsb-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #0a0a0a;
  border-radius: 6px;
  border: 1px solid #2a2a2a;
  transition: all 0.2s;
}

.mrsb-legend-item:hover {
  background: #252525;
  border-color: #3a3a3a;
}

.mrsb-legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.mrsb-legend-label {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}
.mrsb-floating-details .studio-title { font-weight:700; margin-bottom:6px; color:#fff; }
.mrsb-floating-details .event-item {     
  background: #000000;
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 8px;
  color: #ffffff;
}
.mrsb-floating-details .mrsb-close-floating {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #888;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  line-height: 1;
  border-radius: 4px;
  transition: all 0.2s;
}
.mrsb-floating-details .mrsb-close-floating:hover {
  background: #1a1a1a;
  color: #fff;
}
/* Right column booking summary styling to match screenshot */
.mrsb-booking-form-container { background: linear-gradient(180deg, rgba(15,15,15,0.95), rgba(12,12,12,0.92)) !important; border-radius:12px; }
.mrsb-booking-form-container .mrsb-booking-summary {
  border: 1px solid #442b79;
  background: linear-gradient(180deg, rgb(107 89 187 / 24%), rgb(183 120 209 / 19%));
  padding: 16px;
  border-radius: 10px;
}
/* Animations */
.mrsb-studio-card { transition: transform .18s ease, box-shadow .18s ease; }
.mrsb-studio-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.25); }
.mrsb-floating-details { animation: popIn .28s cubic-bezier(.2,.9,.2,1); }
@keyframes popIn { from { transform: translateY(-8px) scale(.98); opacity:0 } to { transform: translateY(0) scale(1); opacity:1 } }



@media (max-width: 1024px) {
	.mrsb-two-col-layout {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.mrsb-two-col-layout {
		grid-template-columns: 1fr;
	}
}

/* Studio grid (frontend/admin) tweaks */
.mrsb-studio-grid {
	display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 1rem;
  justify-items: center;
}

/* Studio card tweaks for modern feel */
.mrsb-studio-card {
	background: #1a1a1a;
	border: 1px solid #333;
	border-radius: 10px;
	padding: 12px;
	color: #eee;
}

/* Ensure calendar and forms align nicely on large screens */
.mrsb-calendar-section {
	order: 1;
}
.mrsb-booking-form-container {
	order: 2;
}

/* Minor UI polish for dark mode inputs to be readable */
input, textarea, select {
	background: #111; color: #eee; border: 1px solid #333;
}

/* Admin Studio list styling for a card-like grid look */
#the-studio-admin-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.mrsb-admin-studio-row { display: contents; }
.mrsb-admin-studio-cell { padding: 8px; border-bottom: 1px solid #2a2a2a; }
@media (max-width: 1000px) {
  #the-studio-admin-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  #the-studio-admin-grid { grid-template-columns: 1fr; }
}

/* Admin Studio cards/dashboard styling */
.mrsb-admin-dashboard-frontend { border-radius: 12px; background: #101010; padding: 12px; box-shadow: 0 6px 16px rgba(0,0,0,.4); color:#fff; }
.mrsb-admin-dashboard-frontend .card { background: #1a1a1a; border: 1px solid #333; border-radius: 8px; padding: 10px; text-align:center; }
.mrsb-admin-dashboard-frontend .card strong { display:block; font-size: 0.9rem; color:#ddd; margin-bottom:6px; }
@media (max-width: 900px) {
  .mrsb-admin-dashboard-frontend .card { font-size: .9rem; }
}

/* Booking container calendar - colors applied via eventDidMount in script.js */

/* Right column: force fully dark compact form */
.mrsb-booking-container[data-theme="dark"] .mrsb-booking-form-container {
  background: linear-gradient(180deg, rgba(12,12,12,0.9), rgba(10,10,10,0.85));
  color: #e6e6e6;
  padding: 14px !important;
  border-radius: 12px;
}
.mrsb-booking-container[data-theme="dark"] .mrsb-form-group label { color: #cbd5e1; font-size: 13px; }
.mrsb-booking-container[data-theme="dark"] .mrsb-form-group input,
.mrsb-booking-container[data-theme="dark"] .mrsb-form-group select,
.mrsb-booking-container[data-theme="dark"] .mrsb-form-group textarea {
  background: #0f1112; border: 1px solid rgba(255,255,255,0.04); color: #e6e6e6; padding:8px 10px; font-size:14px;
}
.mrsb-booking-container[data-theme="dark"] .mrsb-submit-btn { padding:10px 14px; font-size:15px; }

/* Reduce calendar visual footprint on mobile */
@media (max-width: 768px) {
  .mrsb-booking-container[data-theme="dark"] .mrsb-calendar-section { padding:0; }
  .mrsb-booking-container[data-theme="dark"] .fc .fc-daygrid-day-frame { padding:4px !important; display: contents;}
  .mrsb-booking-container[data-theme="dark"] .fc .fc-daygrid-event { font-size:12px !important; padding:6px !important; }
}
.mrsb-booking-container[data-theme="dark"] .fc, .mrsb-booking-container[data-theme="dark"] .fc * {
  color: #ffffff !important;
  background: #0d0d0d;
  border-radius: 1rem;
}
.fc-direction-ltr .fc-toolbar > * > :not(:first-child) {
  margin-left: 0.75em;
  min-width: fit-content;
}
.fc .fc-daygrid-day-number:hover {
  cursor: pointer;
  background: #442b79 !important;
}

/* --- Custom room dropdown (modern) --- */
.mrsb-selector { margin: 6px 0 10px; }
.mrsb-selector-bar { display:flex; align-items:center; justify-content:flex-end; gap:10px; }
.mrsb-label-inline { margin-right:6px; color: var(--mrsb-text-muted); }
.mrsb-space-chooser { position: relative; display:inline-block; }
.mrsb-space-toggle { display:flex; align-items:center; gap:8px; padding:8px 12px; border-radius:10px; border:1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); color:#eee; cursor:pointer; }
.mrsb-space-toggle .mrsb-caret { opacity:.7; }
.mrsb-space-menu { position:absolute; right:0; top: calc(100% + 6px); min-width: 260px; background:#0f0f10; border:1px solid #232323; border-radius:12px; box-shadow: 0 10px 24px rgba(0,0,0,.35); padding:6px; z-index: 999; }
.mrsb-space-item { display:flex; align-items:center; gap:10px; padding:8px; border-radius:8px; cursor:pointer; }
.mrsb-space-item:hover { background:#151517; }
.mrsb-space-thumb { width:48px; height:48px; object-fit:cover; border-radius:8px; border:1px solid #2b2b2b; }
.mrsb-space-noimg { width:48px; height:48px; border-radius:8px; background:#222; display:inline-block; border:1px solid #2b2b2b; }
.mrsb-space-name { color:#f0f0f0; font-weight:600; }
.mrsb-space-empty { color:#aaa; padding:10px; text-align:center; }

/* Mobile: hide sidebar by default and slide in when collapsed class is toggled */
@media (max-width: 768px) {
  /* Force the sidebar off-canvas on small screens (override inline sticky) */
  .mrsb-dashboard-sidebar {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    height: 100vh !important;
    z-index: 2000 !important;
    width: 260px !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.6) !important;
    transform: translateX(-100%);
    transition: transform 0.25s ease !important;
  }
  /* When mobile open, slide it into view */
  .mrsb-modern-dashboard.mrsb-sidebar-open-mobile .mrsb-dashboard-sidebar {
    transform: translateX(0) !important;
  }
  /* Dim the main content when sidebar is open */
  .mrsb-modern-dashboard.mrsb-sidebar-open-mobile .mrsb-dashboard-main::before {
    content: '';
    position: fixed;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1500;
  }
  /* Ensure main content stays scrollable under overlay */
  .mrsb-modern-dashboard .mrsb-dashboard-main { position: relative; z-index: 100; }
}

/* Make sure dashboard views always have the correct display when activated */
.mrsb-dashboard-main .mrsb-view-dashboard,
.mrsb-dashboard-main .mrsb-view-calendar,
.mrsb-dashboard-main .mrsb-view-bookings,
.mrsb-dashboard-main .mrsb-view-customers,
.mrsb-dashboard-main .mrsb-view-studios {
  display: none !important;
  width: 100%;
}
/* Support the inline script's "active" class used to reveal views */
.mrsb-dashboard-main .mrsb-view-dashboard.active,
.mrsb-dashboard-main .mrsb-view-calendar.active,
.mrsb-dashboard-main .mrsb-view-bookings.active,
.mrsb-dashboard-main .mrsb-view-customers.active,
.mrsb-dashboard-main .mrsb-view-studios.active {
  display: block !important;
}

/* Footer & sidebar collapsed visual fixes: show only avatar/icon and hide text */
.mrsb-modern-dashboard.mrsb-sidebar-collapsed .mrsb-sidebar-footer {
  padding: 12px !important;
}
.mrsb-modern-dashboard.mrsb-sidebar-collapsed .mrsb-sidebar-footer > div {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.mrsb-modern-dashboard.mrsb-sidebar-collapsed .mrsb-sidebar-footer > div > div { display: none !important; }
.mrsb-modern-dashboard.mrsb-sidebar-collapsed .mrsb-sidebar-footer > div span { display: none !important; }

/* When collapsed hide nav labels and keep only icons centered */
.mrsb-modern-dashboard.mrsb-sidebar-collapsed .mrsb-nav-item span:nth-child(2) { display: none !important; }
.mrsb-modern-dashboard.mrsb-sidebar-collapsed .mrsb-nav-item span:first-child { margin-right: 0 !important; }

/* When collapsed on desktop, ensure main content shifts appropriately */
.mrsb-modern-dashboard.mrsb-sidebar-collapsed .mrsb-dashboard-main { padding-left: 12px !important; }

/* Show mobile toggle inside sidebar header on small screens */
@media (max-width: 1024px) {
  /* Mobile: show the static toggle above the sidebar, top-left corner of the page */
  .mrsb-mobile-toggle { display:flex !important; position:fixed; left:12px; top:12px; width:36px; height:36px; align-items:center; justify-content:center; border-radius:6px; background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.06); z-index:2600; cursor:pointer; }
  .mrsb-sidebar-header { position:relative; }
}

/* Hide mobile toggle on large screens to avoid stray stroke */
@media (min-width: 1025px) {
  .mrsb-mobile-toggle { display: none !important; }
}

/* Mobile responsive dashboard header */
@media (max-width: 768px) {
  /* Dashboard header - stack title and button vertically on mobile */
  .mrsb-dashboard-main .mrsb-view-dashboard > div > div:first-child {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
  }

  /* Reduce title size on mobile */
  .mrsb-dashboard-main h1 {
    font-size: 1.5rem !important;
  }

  /* Make new booking button full width on mobile */
  .mrsb-new-booking-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 14px 20px !important;
    font-size: 1rem !important;
  }
}

@media (max-width: 480px) {
  /* Further reduce title size on very small screens */
  .mrsb-dashboard-main h1 {
    font-size: 1.25rem !important;
  }

  /* Adjust button padding on very small screens */
  .mrsb-new-booking-btn {
    padding: 12px 16px !important;
    font-size: 0.9rem !important;
  }

  /* Hide columns on very small screens */
  .mrsb-dashboard-table .hidden-small {
    display: none !important;
  }
}

/* Mobile responsive sidebar header */
@media (max-width: 768px) {
  /* Reduce sidebar header padding on mobile */
  .mrsb-sidebar-header {
    padding: 16px !important;
  }

  /* Reduce Beatwise logo size on mobile */
  .mrsb-sidebar-header h2 {
    font-size: 1.25rem !important;
  }

  /* Adjust sidebar toggle button position and size */
  .mrsb-sidebar-toggle {
    padding: 6px 10px !important;
    font-size: 1rem !important;
  }
}

@media (max-width: 480px) {
  /* Further reduce Beatwise logo on very small screens */
  .mrsb-sidebar-header h2 {
    font-size: 1.1rem !important;
  }

  /* Make sidebar header more compact */
  .mrsb-sidebar-header {
    padding: 12px !important;
  }

  /* Adjust toggle button for very small screens */
  .mrsb-sidebar-toggle {
    padding: 4px 8px !important;
    font-size: 0.9rem !important;
  }
}

/* Mobile responsive navigation items */
@media (max-width: 768px) {
  /* Increase touch targets for navigation items on mobile */
  .mrsb-nav-item {
    padding: 14px 20px !important;
    min-height: 48px !important; /* Ensure minimum touch target */
  }

  /* Adjust icon spacing in navigation items */
  .mrsb-nav-item span:first-child {
    margin-right: 14px !important;
  }

  /* Reduce navigation section margins on mobile */
  .mrsb-nav-section {
    margin-bottom: 20px !important;
  }

  /* Adjust navigation label spacing */
  .mrsb-nav-label {
    padding: 6px 20px !important;
    font-size: 0.7rem !important;
  }
}

@media (max-width: 480px) {
  /* Further optimize for very small screens */
  .mrsb-nav-item {
    padding: 12px 16px !important;
    font-size: 0.9rem !important;
  }

  /* Reduce icon size slightly on very small screens */
  .mrsb-nav-item span:first-child {
    font-size: 1.1rem !important;
    margin-right: 12px !important;
  }

  /* Make navigation more compact */
  .mrsb-nav-section {
    margin-bottom: 16px !important;
  }

  /* Adjust sidebar footer (user profile) for mobile */
  .mrsb-sidebar-footer {
    padding: 16px !important;
  }

  .mrsb-sidebar-footer > div {
    padding: 6px !important;
  }

  .mrsb-sidebar-footer .mrsb-user-avatar {
    width: 36px !important;
    height: 36px !important;
    margin-right: 10px !important;
  }

  .mrsb-sidebar-footer .mrsb-user-info {
    flex: 1;
  }

  .mrsb-sidebar-footer .mrsb-user-name {
    font-size: 0.8rem !important;
  }

  .mrsb-sidebar-footer .mrsb-user-role {
    font-size: 0.7rem !important;
  }

  /* Dashboard table mobile responsiveness */
  .mrsb-dashboard-table {
    table-layout: auto !important;
    width: 100% !important;
    min-width: 600px !important;
    display: table !important;
  }

  .mrsb-dashboard-table thead,
  .mrsb-dashboard-table tbody,
  .mrsb-dashboard-table tr {
    display: table-row !important;
  }

  .mrsb-dashboard-table th,
  .mrsb-dashboard-table td {
    display: table-cell !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    vertical-align: top !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    min-width: 60px !important;
    padding: 8px !important;
  }

  /* Hide columns on mobile/tablet screens */
  .mrsb-dashboard-table .hidden-mobile {
    display: none !important;
  }

  /* Ensure table container allows horizontal scrolling */
  .mrsb-dashboard-table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Mobile responsive booking and customers headers */
  .mrsb-view-bookings > div > div:first-child,
  .mrsb-view-customers > div > div:first-child {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }

  .mrsb-view-bookings h1,
  .mrsb-view-customers h1 {
    word-wrap: break-word !important;
    hyphens: auto !important;
    max-width: 100% !important;
    font-size: 1.5rem !important;
  }

  .mrsb-bookings-search,
  .mrsb-customers-search {
    width: 100% !important;
    max-width: none !important;
  }

  .mrsb-filter-btn {
    width: 100% !important;
    margin-top: 8px !important;
  }
}

@media (max-width: 1024px) {
  /* Tablet responsive booking header */
  .mrsb-view-bookings > div > div:first-child {
    flex-wrap: wrap !important;
    gap: 12px !important;
  }

  .mrsb-view-bookings h1 {
    font-size: 1.75rem !important;
    flex: 1 !important;
    min-width: 200px !important;
  }

  .mrsb-bookings-search,
  .mrsb-customers-search {
    flex: 1 !important;
    min-width: 200px !important;
  }

  /* Filter modal mobile responsiveness */
  #mrsb-bookings-filter-modal {
    padding: 16px !important;
  }

  #mrsb-bookings-filter-modal > div {
    width: 95% !important;
    max-width: none !important;
    padding: 20px !important;
  }

  #mrsb-bookings-filter-modal div:last-child {
    flex-direction: column !important;
  }

  #mrsb-bookings-filter-modal div:last-child button {
    width: 100% !important;
    margin-bottom: 8px !important;
  }
}

/* Mobile toggle button - hidden by default but controlled by media queries */
.mrsb-mobile-toggle:active { transform: translateY(1px); }

.fc-theme-standard td, .fc-theme-standard th {
  border: 1px solid #000000;
  background: #000;
}

:where(.wp-site-blocks *:focus) {
  outline-style: none;
}

/* Days off / closed styling for FullCalendar */
.mrsb-day-off {
  opacity: 0.65;
}
.fc-daygrid-day.mrsb-day-off .fc-daygrid-day-number,
.fc-daygrid-day.mrsb-day-off .fc-daygrid-day-top {
  color: #6B7280 !important;
}
.fc-timegrid-slot.mrsb-day-off,
.fc-timegrid-axis.mrsb-day-off {
  opacity: 0.6;
}

/* FullCalendar - mobile day number layout fixes */
/* Make day numbers stay on a single line and align top-right */
.fc .fc-daygrid-day-top {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 4px;
}
.fc .fc-daygrid-day-number {
  display: inline-block;
  white-space: nowrap;
  margin: 0;
  line-height: 1;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  /* Reduce font-size and padding for narrow screens to avoid vertical stacking */
  .fc .fc-daygrid-day-number {
    font-size: 0.85rem;
  }
  .fc .fc-daygrid-day-top {
    padding: 2px 4px;
  }
  /* Reduce event title size in month view to prevent wrapping */
  .fc .fc-daygrid-event .fc-event-title, .fc .fc-daygrid-event .fc-event-time {
    font-size: 11px;
  }
}

/* Hide studio price in frontend studio selection */
.mrsb-studio-price {
  display: none !important;
}

/* Prevent interaction on days marked as off */
.fc-daygrid-day.mrsb-day-off,
.fc-daygrid-day.mrsb-day-off .fc-daygrid-day-frame {
  pointer-events: none;
  cursor: default;
}
.fc-timegrid-slot.mrsb-day-off,
.fc-timegrid-axis.mrsb-day-off {
  pointer-events: none;
  cursor: default;
}