/* WooBooking Pilot v1.3.0 Custom Dashboard Stylesheet */
:root {
  --wb-navy: #001426;
  --wb-navy-light: #002240;
  --wb-orange: #ff6b21;
  --wb-orange-hover: #e05611;
  --wb-bg: #f4f6f9;
  --wb-card: #ffffff;
  --wb-text: #334155;
  --wb-text-dark: #0f172a;
  --wb-text-light: #94a3b8;
  --wb-border: #cbd5e1;
  --wb-radius: 12px;
  --wb-shadow: 0 10px 30px rgba(0, 20, 38, 0.08);
}

body.woobooking-pilot-standalone-body {
  background-color: var(--wb-navy) !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

/* Hide floating theme elements, chat bubbles, call buttons, and side-cart icons */
.joinchat, .wp-call-button, .side-cart-toggle, #side-cart-icon, .side-cart, #side-cart, 
.xoo-wsc-basket, .xoo-wsc-markup, #chat-widget, #wp-live-chat, .call-now-button, 
[class*="call-now"], [id*="chat"], [class*="chat-widget"], [class*="side-cart"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.woobooking-pilot-wrapper {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--wb-text);
}

/* Full App Layout Shell */
.wb-app-shell {
  display: flex;
  min-height: 100vh;
  background: var(--wb-bg);
  position: relative;
}

/* Sidebar Navigation (Left) */
.wb-sidebar {
  width: 280px;
  background: var(--wb-navy);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 20px;
  box-sizing: border-box;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  position: relative;
}

.wb-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.wb-sidebar-brand {
  text-align: center;
  width: 100%;
}
.wb-logo-img {
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto 12px auto;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.wb-site-name {
  font-size: 13px;
  color: var(--wb-orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mobile Sidebar Close Button (X) */
.wb-sidebar-close-btn {
  display: none;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
  position: absolute;
  top: 16px; right: 16px;
}
.wb-sidebar-close-btn svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}
.wb-sidebar-close-btn:hover {
  background: var(--wb-orange);
  border-color: var(--wb-orange);
}

/* Sidebar Menu */
.wb-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wb-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  color: #94a3b8;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}
.wb-nav-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.wb-nav-item:hover {
  color: #ffffff;
  background: var(--wb-navy-light);
}
.wb-nav-item.active {
  color: #ffffff;
  background: var(--wb-orange);
}

.wb-sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
  text-align: center;
}
.wb-sidebar-footer strong {
  color: #cbd5e1;
}

/* Main Content Area (Right) */
.wb-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Header Topbar */
.wb-top-header {
  background: var(--wb-card);
  border-bottom: 1px solid var(--wb-border);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.wb-header-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--wb-navy);
  margin: 0;
}
.wb-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.wb-role-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.wb-role-view { background: #e0f2fe; color: #0369a1; }
.wb-role-edit { background: #dcfce7; color: #15803d; }

.wb-mobile-toggle {
  display: none;
  background: var(--wb-orange);
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  align-items: center;
  gap: 8px;
}
.wb-mobile-toggle svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

/* Content Container */
.wb-body-container {
  padding: 32px;
  flex: 1;
}

/* Auth Login Screen */
.wb-auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wb-navy);
  padding: 20px;
}
.wb-auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--wb-card);
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  box-sizing: border-box;
}
.wb-auth-logo-center {
  text-align: center;
  margin-bottom: 24px;
}
.wb-auth-logo-center img {
  max-width: 230px;
  height: auto;
  margin-bottom: 12px;
}

.wb-form-group {
  margin-bottom: 22px;
}
.wb-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--wb-navy);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Input Fields & Password Eye Icon Wrapper */
.wb-input {
  width: 100%;
  padding: 14px 18px !important;
  border: 1.5px solid var(--wb-border) !important;
  border-radius: 10px !important;
  font-size: 16px !important;
  box-sizing: border-box;
  outline: none;
  background: #ffffff;
  color: var(--wb-text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
  line-height: 1.4;
}
.wb-input:focus {
  border-color: var(--wb-orange) !important;
  box-shadow: 0 0 0 3.5px rgba(255, 107, 33, 0.18) !important;
}

.wb-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.wb-password-wrapper .wb-input {
  padding-right: 50px !important;
}
.wb-eye-toggle-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  border-radius: 6px;
  transition: color 0.2s;
}
.wb-eye-toggle-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.wb-eye-toggle-btn:hover {
  color: var(--wb-orange);
}

.wb-btn-orange {
  width: 100%;
  padding: 16px 20px;
  background-color: var(--wb-orange);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.wb-btn-orange:hover {
  background-color: var(--wb-orange-hover);
}

/* Orders Cards & Status Badges */
.wb-orders-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.wb-order-card {
  background: var(--wb-card);
  border-radius: 12px;
  border: 1px solid var(--wb-border);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-shadow: var(--wb-shadow);
}
.wb-order-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--wb-navy);
  margin: 0 0 8px 0;
}
.wb-order-details-inline {
  font-size: 14px;
  color: var(--wb-text-light);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.wb-status-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.wb-status-processing { background: #e0f2fe; color: #0369a1; }
.wb-status-completed { background: #dcfce7; color: #15803d; }
.wb-status-on-hold { background: #fef9c3; color: #a16207; }
.wb-status-pending { background: #ffedd5; color: #c2410c; }
.wb-status-cancelled { background: #fee2e2; color: #b91c1c; }

/* Calendar Component & Mobile Scroll Wrapper */
.wb-calendar-card {
  background: var(--wb-card);
  border-radius: 16px;
  border: 1px solid var(--wb-border);
  padding: 28px;
  box-shadow: var(--wb-shadow);
}

.wb-mobile-scroll-hint {
  display: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--wb-orange);
  margin-bottom: 10px;
}

.wb-calendar-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.wb-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.wb-cal-day-box {
  background: #ffffff;
  border: 1px solid var(--wb-border);
  border-radius: 8px;
  min-height: 100px;
  padding: 8px;
  box-sizing: border-box;
}
.wb-cal-day-num {
  font-size: 14px;
  font-weight: 800;
  color: var(--wb-navy);
  margin-bottom: 6px;
}
.wb-event-chip {
  background: #fff5f5;
  border-left: 3px solid var(--wb-orange);
  color: #9b031b;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 4px;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Modal Popup & Fixed Clean SVG Close Button Without Overlap */
.wb-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 20, 38, 0.78);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  padding: 20px;
}
.wb-modal-box {
  background: var(--wb-card);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  padding: 32px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.35);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.wb-modal-title {
  margin-top: 0;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 14px;
  padding-right: 50px !important; /* Prevents overlap with close button */
  font-size: 22px;
  font-weight: 800;
  color: var(--wb-navy);
  line-height: 1.3;
}

.wb-modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--wb-navy);
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s, transform 0.1s;
  z-index: 100;
}
.wb-modal-close-btn svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}
.wb-modal-close-btn:hover {
  background: var(--wb-orange);
}

/* Mobile Sidebar Backdrop Overlay */
.wb-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 20, 38, 0.75);
  z-index: 998;
}

/* Mobile Responsive Adjustments */
@media (max-width: 900px) {
  .wb-sidebar {
    position: fixed;
    top: 0; bottom: 0; left: 0;
    transform: translateX(-100%);
  }
  .wb-sidebar.open {
    transform: translateX(0);
  }
  .wb-sidebar-close-btn {
    display: flex;
  }
  .wb-sidebar-overlay.open {
    display: block;
  }
  .wb-mobile-toggle {
    display: inline-flex;
  }
  .wb-body-container {
    padding: 16px;
  }
  .wb-order-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .wb-calendar-card {
    padding: 16px;
  }
  .wb-mobile-scroll-hint {
    display: block;
  }
  .wb-calendar-grid {
    min-width: 650px; /* Allows horizontal scrolling so dates never squish */
  }
}
