/**
 * ============================================================================
 * VEYAPURO CLEAN — UNIFIED SYSTEM DESIGN THEME (theme.css)
 * ============================================================================
 * Visual Reference: Clean Sky-Blue Canvas (#dbe9f8 -> #eef4fb), Royal Navy
 * (#233982 / #162d6e), Condensed Uppercase Navigation with "+" Indicators,
 * Centered Two-Line Hero Typography, Circular Carousel Controls, and Floating
 * Social Action Stack.
 * ============================================================================
 */

:root {
  /* Core Brand Palette Matching Uploaded Visual Reference */
  --royal-blue: #233982;
  --navy: #162d6e;
  --navy-dark: #0D1F45;
  --navy-medium: #233982;
  --sky-top: #d8e8f8;
  --sky-mid: #e5f0fb;
  --light-blue: #eef4fb;
  --orange: #FF6700;
  --orange-hover: #e55c00;
  --gold: #FECB8B;
  --white: #ffffff;
  --text-body: #2c3545;
  --text-muted: #5b6b85;
  --text-on-navy-muted: #c9d5ea;
  --border-light: #d5e2f2;
  --border-field: #b4c5dc;

  /* Status Colors */
  --status-success-bg: #dcfce7;
  --status-success-text: #15803d;
  --status-success-border: #86efac;

  --status-warning-bg: #fef3c7;
  --status-warning-text: #b45309;
  --status-warning-border: #fcd34d;

  --status-danger-bg: #fee2e2;
  --status-danger-text: #b91c1c;
  --status-danger-border: #fca5a5;

  --status-info-bg: #dbeafe;
  --status-info-text: #1d4ed8;
  --status-info-border: #93c5fd;

  /* Legacy Variable Aliases for All Internal Operations Pages */
  --primary: var(--royal-blue);
  --primary-navy: var(--royal-blue);
  --primary-navy-dark: var(--navy-dark);
  --primary-dark: var(--navy-dark);
  --primary-light: var(--navy);
  --primary-blue: var(--royal-blue);
  --primary-cyan: var(--orange);
  --primary-teal: var(--royal-blue);
  --primary-purple: var(--royal-blue);
  --primary-indigo: var(--royal-blue);
  --accent: var(--orange);
  --accent-orange: var(--orange);
  --accent-cyan: var(--orange);
  --accent-green: var(--status-success-text);
  --accent-amber: var(--status-warning-text);
  --accent-red: var(--status-danger-text);
  --success: var(--status-success-text);
  --warning: var(--status-warning-text);
  --danger: var(--status-danger-text);
  --info: var(--status-info-text);
  --bg-body: var(--light-blue);
  --bg-slate: var(--light-blue);
  --bg-main: var(--light-blue);
  --bg-card: var(--white);
  --surface: var(--white);
  --border: var(--border-light);
  --border-color: var(--border-light);
  --border-subtle: var(--border-light);
  --text-main: var(--text-body);
  --text-dark: var(--navy);
  --text-slate: var(--text-body);

  /* Typography & Radii */
  --font-sans: Arial, Helvetica, sans-serif;
  --font-heading: Arial, Helvetica, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
  --font-mono: Arial, Helvetica, sans-serif;

  --radius-btn: 6px;
  --radius-field: 6px;
  --radius-card: 8px;
  --radius-modal: 10px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;

  --shadow-hover: 0 18px 40px rgba(22, 45, 110, 0.14);
  --shadow-modal: 0 24px 60px rgba(13, 31, 69, 0.32);
  --shadow-sm: 0 2px 8px rgba(22, 45, 110, 0.06);
  --shadow-md: 0 8px 24px rgba(22, 45, 110, 0.10);
  --shadow-lg: 0 18px 40px rgba(22, 45, 110, 0.16);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans) !important;
  color: var(--text-body);
  background-color: var(--light-blue);
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
button, input, select, textarea {
  font-family: var(--font-sans) !important;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

:focus-visible {
  outline: 3px solid var(--orange) !important;
  outline-offset: 2px;
}

.wrap, .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}

/* Section Bands */
.band-white {
  background-color: var(--white);
  color: var(--text-body);
  padding: 88px 0;
}

.band-light {
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--light-blue) 100%);
  color: var(--text-body);
  padding: 88px 0;
}

.band-navy,
.band-navy-dots,
.band-navy-stripes,
.band-navy-med,
.band-navy-med-stripes {
  background-color: var(--royal-blue);
  color: var(--white);
  padding: 88px 0;
}

.label, .section-tag {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-block;
  color: var(--royal-blue);
}

.lined, .section-title {
  display: inline-block;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  padding-bottom: 14px;
  position: relative;
  margin: 0;
  color: var(--royal-blue);
}

.lined::after, .section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: var(--orange);
}

/* Buttons */
.btn,
.btn-primary,
.btn-add-shift-cta,
.btn-add-cleaner-cta,
.btn-save-cleaner,
.btn-done-cleaner,
.btn-submit,
.action-btn.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--royal-blue) !important;
  color: var(--white) !important;
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-btn) !important;
  border: 2px solid var(--royal-blue) !important;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.btn:hover:not(:disabled),
.btn-primary:hover:not(:disabled),
.btn-add-shift-cta:hover:not(:disabled),
.btn-add-cleaner-cta:hover:not(:disabled),
.btn-save-cleaner:hover:not(:disabled),
.btn-done-cleaner:hover:not(:disabled),
.btn-submit:hover:not(:disabled),
.action-btn.primary:hover:not(:disabled) {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
  color: var(--navy-dark) !important;
  transform: translateY(-2px);
}

.btn-orange {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
  color: var(--navy-dark) !important;
}

.btn-orange:hover:not(:disabled) {
  background: var(--orange-hover) !important;
  border-color: var(--orange-hover) !important;
}

.btn-sm,
.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--royal-blue) !important;
  color: var(--white) !important;
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius-btn) !important;
  border: 2px solid var(--royal-blue) !important;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-sm:hover:not(:disabled),
.btn-primary-sm:hover:not(:disabled) {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
  color: var(--navy-dark) !important;
  transform: translateY(-2px);
}

.btn-line,
.btn-secondary,
.btn-outline-sm,
.btn-today-text,
.btn-toggle-mobile-companion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent !important;
  color: var(--royal-blue) !important;
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius-btn) !important;
  border: 2px solid var(--royal-blue) !important;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-line:hover:not(:disabled),
.btn-secondary:hover:not(:disabled),
.btn-outline-sm:hover:not(:disabled),
.btn-today-text:hover:not(:disabled),
.btn-toggle-mobile-companion:hover:not(:disabled) {
  background: var(--royal-blue) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
}

.btn-line-light {
  color: var(--white) !important;
  border-color: var(--white) !important;
}

.btn-line-light:hover:not(:disabled) {
  background: var(--white) !important;
  color: var(--royal-blue) !important;
}

.btn-block {
  width: 100%;
}

button:disabled,
.btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Forms & Inputs */
.field,
.form-control,
.form-fld,
.table-search-input,
.member-filter-select,
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="search"],
select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border-field) !important;
  border-radius: var(--radius-field) !important;
  padding: 0 14px;
  font-size: 15px;
  font-family: var(--font-sans) !important;
  color: var(--text-body);
  background-color: var(--white);
}

textarea.field,
textarea.form-control,
textarea.form-fld,
textarea {
  width: 100%;
  min-height: 96px;
  border: 1px solid var(--border-field) !important;
  border-radius: var(--radius-field) !important;
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font-sans) !important;
  color: var(--text-body);
  background-color: var(--white);
}

.field:focus,
.form-control:focus,
.form-fld:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(35, 57, 130, 0.25) !important;
  border-color: var(--royal-blue) !important;
}

.field-label,
.lbl-title,
.form-group label {
  display: block;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--royal-blue) !important;
  margin-bottom: 6px;
}

.field-error {
  display: block;
  color: var(--status-danger-text);
  font-size: 13px;
  font-weight: 700;
  margin-top: 5px;
}

/* Tables & Lists */
.table-responsive,
.table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
}

table thead th,
.dispatch-table thead th,
.agenda-table thead th,
.crm-table thead th,
.line-items-table thead th,
.matrix-table thead th {
  background-color: #192d5a !important;
  color: #e9f0fa !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  padding: 13px 16px !important;
  border-bottom: 2px solid #d9822b !important;
}

table thead th *,
.matrix-table thead th .date-num-large,
.matrix-table thead th .date-sub-text {
  color: #e9f0fa !important;
}

table tbody tr:nth-child(even) td {
  background-color: #f6f9fc !important;
}

table tbody tr:nth-child(odd) td {
  background-color: var(--white) !important;
}

table tbody tr:hover td {
  background-color: #ebf1f8 !important;
}

/* Status Pills */
.status-pill,
.status-badge,
.status-badge-table,
.badge-pill,
.payment-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.status-completed, .status-paid, .payment-badge-status.paid, .badge-paid, .badge-success {
  background-color: var(--status-success-bg) !important;
  color: var(--status-success-text) !important;
  border-color: var(--status-success-border) !important;
}

.status-pending, .status-warning, .payment-badge-status.pending, .badge-pending, .badge-warning {
  background-color: var(--status-warning-bg) !important;
  color: var(--status-warning-text) !important;
  border-color: var(--status-warning-border) !important;
}

.status-confirmed, .status-in-progress, .status-info, .badge-info {
  background-color: var(--status-info-bg) !important;
  color: var(--status-info-text) !important;
  border-color: var(--status-info-border) !important;
}

.status-cancelled, .status-danger, .status-overdue, .badge-danger, .badge-overdue {
  background-color: var(--status-danger-bg) !important;
  color: var(--status-danger-text) !important;
  border-color: var(--status-danger-border) !important;
}

/* Internal Operations Sidebar (Refined Low-Glare Executive Grading) */
.veyapuro-sidebar {
  width: 260px;
  background: #122042 !important;
  color: #a8b9d4 !important;
}

.veyapuro-sidebar .brand-badge {
  background: #243e78 !important;
  color: var(--white) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  font-weight: 700 !important;
}

.veyapuro-sidebar .brand-sub,
.veyapuro-sidebar .user-role-tag {
  color: #a8b9d4 !important;
}

.veyapuro-sidebar .user-avatar {
  background: #243e78 !important;
  color: #e9f0fa !important;
}

.veyapuro-sidebar .nav-item {
  color: #a8b9d4 !important;
  border-left: 3px solid transparent !important;
}

.veyapuro-sidebar .nav-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--white) !important;
}

.veyapuro-sidebar .nav-item.active {
  background: #243e78 !important;
  color: var(--white) !important;
  border-left: 3px solid #d9822b !important;
  font-weight: 700 !important;
}

/* Grids & Placeholders */
.grid4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.clip {
  overflow: hidden;
  position: relative;
}

.slot-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slot-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  transition: transform 0.5s ease;
}

.slot-img-wrap img.img-missing {
  display: none;
}

.ph {
  background: linear-gradient(135deg, #c9ddf4, #a9c6e8);
  color: var(--royal-blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
  width: 100%;
  height: 100%;
}

.ph::before {
  content: "";
  width: 46px;
  height: 34px;
  border: 2px solid currentColor;
  border-radius: 7px;
  opacity: 0.6;
  background: radial-gradient(circle at 50% 55%, currentColor 0 7px, transparent 8px);
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .band-white, .band-light, .band-navy {
    padding: 56px 0 !important;
  }
  .lined, .section-title {
    font-size: 26px !important;
  }
  .grid3, .grid4 {
    grid-template-columns: 1fr;
  }
  .wrap, .container {
    padding: 0 16px;
  }
}
