
/* ═══════════════════════════════════════════════
   SAHA QUOTES — Flowbite Application UI Clone
   Exact match: flowbite.com/application-ui/demo
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif; background: #F9FAFB; color: #111827; line-height: 1.5; }

/* ── Page system ── */
.view { display: none; }
.view.active { display: block; min-height: 100vh; }
#app-shell { display: none; }
#app-shell.active { display: flex; flex-direction: column; min-height: 100vh; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 99px; }

/* ════════════════════
   LOGIN  (Flowbite sign-in exact)
════════════════════ */
.login-wrap {
  display: flex; min-height: 100vh;
}
.login-form-col {
  width: 50%; display: flex; align-items: center; justify-content: center;
  padding: 40px; background: #fff;
}
.login-art-col {
  width: 50%; background: #1F2937;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 48px;
}
@media (max-width: 768px) { .login-art-col { display: none; } .login-form-col { width: 100%; } }
.login-inner { width: 100%; max-width: 380px; }
.login-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 36px; }
.login-logo-box {
  width: 36px; height: 36px; background: #1C64F2; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: #fff; letter-spacing: -1px;
  flex-shrink: 0;
}
.login-logo-text { font-size: 18px; font-weight: 700; color: #111827; }

/* ════════════════════
   NAVBAR  (exactly like Flowbite demo)
════════════════════ */
.top-nav {
  background: #fff; border-bottom: 1px solid #E5E7EB;
  position: sticky; top: 0; z-index: 40;
  height: 56px; display: flex; align-items: center;
  padding: 0 16px 0 20px; gap: 16px;
}
.nav-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; }
.nav-logo-box {
  width: 30px; height: 30px; background: #1C64F2; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
}
.nav-logo-name { font-size: 15px; font-weight: 700; color: #111827; letter-spacing: -0.2px; }
.nav-search-wrap {
  flex: 1; max-width: 260px;
  display: flex; align-items: center;
  background: #F9FAFB; border: 1px solid #E5E7EB;
  border-radius: 8px; padding: 0 12px; gap: 8px; height: 36px;
}
.nav-search-wrap i { color: #9CA3AF; font-size: 12px; }
.nav-search-wrap input {
  border: none; background: transparent; font-size: 13px; color: #374151;
  outline: none; width: 100%; font-family: inherit;
}
.nav-search-wrap input::placeholder { color: #9CA3AF; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-icon-btn {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid #E5E7EB; background: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #6B7280; position: relative; transition: all 0.1s;
}
.nav-icon-btn:hover { background: #F9FAFB; }
.nav-badge-dot {
  position: absolute; top: 5px; right: 5px;
  width: 7px; height: 7px; background: #F05252; border-radius: 50%;
  border: 1.5px solid #fff;
}
.nav-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: #EFF6FF; color: #1C64F2; border-radius: 6px;
  padding: 3px 10px; font-size: 11px; font-weight: 600;
}
.nav-user-btn {
  display: flex; align-items: center; gap: 7px;
  background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 8px;
  padding: 4px 10px 4px 5px; cursor: pointer; transition: background 0.1s;
}
.nav-user-btn:hover { background: #F3F4F6; }
.avatar {
  width: 26px; height: 26px; border-radius: 6px; background: #1C64F2;
  color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-user-btn > span { font-size: 13px; font-weight: 500; color: #374151; }

/* ════════════════════
   SIDEBAR  (Flowbite dark sidebar — exact)
════════════════════ */
.app-body { display: flex; flex: 1; }
.sidebar {
  width: 252px; background: #111827; flex-shrink: 0;
  display: flex; flex-direction: column;
  padding: 16px 10px 16px; overflow-y: auto;
  position: sticky; top: 56px;
  height: calc(100vh - 56px);
  transition: width 0.22s cubic-bezier(.4,0,.2,1);
  z-index: 30;
}
.sidebar.collapsed {
  width: 56px;
  padding: 12px 6px;
}
.sidebar.collapsed .sidebar-section,
.sidebar.collapsed .sidebar-item span,
.sidebar.collapsed #sb-logout-label {
  display: none;
}
.sidebar.collapsed .sidebar-item {
  justify-content: center;
  padding: 10px 0;
  position: relative;
}
.sidebar.collapsed .sidebar-item i { width: auto; font-size: 16px; }
.sidebar.collapsed .sidebar-item:hover::after {
  content: attr(data-label);
  position: absolute; left: calc(100% + 10px); top: 50%;
  transform: translateY(-50%);
  background: #1F2937; color: #F3F4F6;
  font-size: 12px; font-weight: 500;
  padding: 5px 11px; border-radius: 6px;
  white-space: nowrap; border: 1px solid #374151;
  pointer-events: none; z-index: 200;
}
.sidebar.collapsed .sb-toggle-wrap { justify-content: center; }
.sb-toggle-wrap {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.sb-section-label {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.8px; color: #4B5563; padding: 0 10px;
  margin: 0;
}
.sidebar-toggle-btn {
  width: 26px; height: 26px; border-radius: 6px;
  border: 1px solid #374151; background: transparent; color: #6B7280;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.15s; font-family: inherit;
}
.sidebar-toggle-btn:hover { background: #374151; color: #F3F4F6; }
.main-area { flex: 1; min-width: 0; padding: 24px; background: #F9FAFB; min-height: calc(100vh - 56px); overflow-x: hidden; }
.sidebar-section {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.8px; color: #4B5563; padding: 0 10px;
  margin: 16px 0 8px;
}
.sidebar-section:first-child { margin-top: 0; }
.sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  color: #9CA3AF; font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: all 0.12s; border: none;
  background: transparent; width: 100%; text-align: left;
  font-family: inherit; margin-bottom: 1px;
}
.sidebar-item i { width: 16px; text-align: center; font-size: 12.5px; flex-shrink: 0; }
.sidebar-item span { line-height: 1; }
.sidebar-item:hover { background: #1F2937; color: #F3F4F6; }
.sidebar-item.active { background: #1F2937; color: #F9FAFB; font-weight: 600; }
.sidebar-item.active i { color: #60A5FA; }
.sidebar-divider { height: 1px; background: #1F2937; margin: 8px 0; }

/* ════════════════════
   MAIN AREA
════════════════════ */


/* ════════════════════
   DROPDOWN
════════════════════ */
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid #E5E7EB; border-radius: 10px;
  min-width: 204px; z-index: 200; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.dd-header { padding: 12px 14px; border-bottom: 1px solid #F3F4F6; }
.dd-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 14px; font-size: 13px; color: #374151;
  cursor: pointer; width: 100%; text-align: left;
  border: none; background: transparent; font-family: inherit;
  transition: background 0.1s;
}
.dd-item:hover { background: #F9FAFB; }
.dd-item.danger { color: #E02424; }

/* ════════════════════
   TYPOGRAPHY
════════════════════ */
.page-title { font-size: 22px; font-weight: 700; color: #111827; letter-spacing: -0.4px; }
.page-sub   { font-size: 14px; color: #6B7280; margin-top: 3px; }

/* ════════════════════
   CARDS
════════════════════ */
.card { background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; padding: 20px; }
.card-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid #F3F4F6;
}
.card-title { font-size: 15px; font-weight: 600; color: #111827; display: flex; align-items: center; gap: 7px; }

/* ════════════════════
   BUTTONS  (Flowbite exact)
════════════════════ */
button, .btn { font-family: inherit; cursor: pointer; transition: all 0.12s; }
.btn-gold, .btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  background: #1C64F2; color: #fff; border: none; border-radius: 8px;
  padding: 9px 17px; font-size: 13.5px; font-weight: 500; font-family: inherit;
  white-space: nowrap; cursor: pointer; text-decoration: none; transition: background 0.12s;
}
.btn-gold:hover, .btn-primary:hover { background: #1A56DB; }
.btn-gold:disabled { background: #BFDBFE; cursor: not-allowed; }
.btn-secondary, .btn-outline {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; color: #374151; border: 1px solid #E5E7EB; border-radius: 8px;
  padding: 8px 16px; font-size: 13.5px; font-weight: 500; font-family: inherit;
  white-space: nowrap; cursor: pointer; transition: background 0.12s;
}
.btn-secondary:hover, .btn-outline:hover { background: #F9FAFB; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; color: #6B7280; border: none; border-radius: 8px;
  padding: 7px 12px; font-size: 13px; font-family: inherit; cursor: pointer;
}
.btn-ghost:hover { background: #F3F4F6; color: #374151; }
.btn-danger {
  display: inline-flex; align-items: center; gap: 7px;
  background: #FEF2F2; color: #E02424; border: 1px solid #FECACA; border-radius: 8px;
  padding: 7px 13px; font-size: 13px; font-family: inherit; cursor: pointer;
}
.btn-danger:hover { background: #FEE2E2; }
.btn-sm { padding: 6px 12px !important; font-size: 12px !important; gap: 5px !important; }
.w-full { width: 100%; justify-content: center; }

/* ════════════════════
   FORMS
════════════════════ */
.form-label {
  display: block; font-size: 13px; font-weight: 500; color: #374151; margin-bottom: 5px;
}
.form-input {
  display: block; width: 100%; background: #F9FAFB;
  border: 1px solid #E5E7EB; border-radius: 8px; padding: 9px 12px;
  font-size: 14px; color: #111827; outline: none; font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus { border-color: #1C64F2; box-shadow: 0 0 0 3px rgba(28,100,242,0.1); background: #fff; }
.form-input::placeholder { color: #9CA3AF; }
.form-input option { background: #fff; color: #111827; }
input.form-input:not([type=checkbox]):not([type=radio]),
select.form-input { height: 40px; }
textarea.form-input { height: auto; resize: vertical; }

.role-pill {
  display: block; width: 100%; text-align: center;
  background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 8px;
  padding: 7px 8px; font-size: 13px; font-weight: 500; color: #6B7280;
  cursor: pointer; font-family: inherit; transition: all 0.12s;
}
.role-pill:hover { border-color: #93C5FD; color: #1C64F2; }
.role-pill.active { background: #EFF6FF; border-color: #1C64F2; color: #1C64F2; font-weight: 600; }

/* ════════════════════
   BADGES
════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 12px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.badge-blue, .badge-gold { background: #EFF6FF; color: #1C64F2; }
.badge-green              { background: #ECFDF5; color: #059669; }
.badge-red                { background: #FEF2F2; color: #E02424; }
.badge-yellow             { background: #FFFBEB; color: #92400E; }
.badge-gray               { background: #F3F4F6; color: #6B7280; }
.badge-purple             { background: #F5F3FF; color: #7C3AED; }

/* ════════════════════
   TABLES
════════════════════ */
.table-wrap {
  overflow-x: auto; background: #fff;
  border: 1px solid #E5E7EB; border-radius: 12px;
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead tr { background: #F9FAFB; border-bottom: 1px solid #E5E7EB; }
.data-table th {
  padding: 11px 16px; text-align: left;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.6px; color: #6B7280; white-space: nowrap;
}
.data-table td {
  padding: 13px 16px; color: #111827; font-size: 13.5px;
  border-bottom: 1px solid #F3F4F6; vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #FAFAFA; }

/* ════════════════════
   TOAST
════════════════════ */
#toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: #fff; border: 1px solid #E5E7EB; border-radius: 10px;
  padding: 14px 16px; min-width: 300px;
  display: none; align-items: center; gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  animation: toastIn 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes toastIn { from { transform: translateY(20px) scale(0.95); opacity: 0; } to { transform: none; opacity: 1; } }
.toast-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; }

/* ════════════════════
   MODALS
════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(17,24,39,0.5);
  z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff; border-radius: 12px; padding: 24px;
  max-width: 560px; width: 100%; max-height: calc(100vh - 32px);
  overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  animation: modalIn 0.18s ease;
}
@keyframes modalIn { from { transform: scale(0.96) translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-hd { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.modal-title { font-size: 17px; font-weight: 700; color: #111827; }
.modal-close {
  width: 30px; height: 30px; border-radius: 7px; background: #F3F4F6;
  border: none; color: #6B7280; cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.modal-close:hover { background: #E5E7EB; color: #111827; }

/* ════════════════════
   WIZARD
════════════════════ */
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeIn 0.18s ease; }
.step-indicator { display: flex; align-items: center; margin-bottom: 28px; }
.step-dot {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; transition: all 0.25s;
  border: 2px solid #E5E7EB; color: #9CA3AF; background: #fff;
}
.step-dot.done   { background: #1C64F2; border-color: #1C64F2; color: #fff; }
.step-dot.active { border-color: #1C64F2; color: #1C64F2; background: #EFF6FF; }
.step-line { flex: 1; height: 2px; background: #E5E7EB; transition: background 0.25s; }
.step-line.done { background: #1C64F2; }

/* Service card */
.service-card {
  border: 1.5px solid #E5E7EB; border-radius: 10px; padding: 14px 10px;
  cursor: pointer; text-align: center; background: #fff; transition: all 0.12s;
}
.service-card:hover   { border-color: #93C5FD; background: #F0F9FF; }
.service-card.selected{ border-color: #1C64F2; background: #EFF6FF; }
.service-card .icon   { font-size: 26px; margin-bottom: 6px; }
.service-card .name   { font-size: 12px; font-weight: 500; color: #374151; }
.service-card .check  { display: none; color: #1C64F2; font-size: 13px; }
.service-card.selected .check { display: block; }
.service-card.selected .name  { color: #1C64F2; font-weight: 600; }

/* Accordion */
.accordion { background: #fff; border: 1px solid #E5E7EB; border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.accordion-header {
  padding: 13px 18px; display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; background: #fff; user-select: none;
}
.accordion-header:hover { background: #FAFAFA; }
.accordion-body { padding: 0 18px 16px; border-top: 1px solid #F3F4F6; display: none; }
.accordion-body.open { display: block; }

/* Cat items */
.cat-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 8px; border: 1px solid #E5E7EB;
  background: #fff; margin-bottom: 6px; transition: all 0.12s;
}
.cat-item:hover   { border-color: #93C5FD; background: #F0F9FF; }
.cat-item.selected{ border-color: #1C64F2; background: #EFF6FF; }
.cat-qty { display: flex; align-items: center; gap: 6px; }
.qty-btn {
  width: 26px; height: 26px; border-radius: 6px; border: 1px solid #E5E7EB;
  background: #F9FAFB; color: #374151; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: all 0.1s; font-family: inherit;
}
.qty-btn:hover { background: #1C64F2; color: #fff; border-color: #1C64F2; }

/* Live cart */
.live-cart {
  position: sticky; top: 76px;
  background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; padding: 18px;
}
.cart-item {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 8px 0; border-bottom: 1px solid #F3F4F6; font-size: 12.5px;
}
.cart-item:last-child { border-bottom: none; }
.cart-total { border-top: 1px solid #E5E7EB; padding-top: 12px; margin-top: 8px; }

/* Review */
.review-section { background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 10px; padding: 16px; margin-bottom: 12px; }
.review-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 7px 0; font-size: 13.5px; border-bottom: 1px solid #F3F4F6; }
.review-row:last-child { border-bottom: none; }

/* Client option */
.client-option {
  border: 1.5px solid #E5E7EB; border-radius: 10px; padding: 12px;
  cursor: pointer; display: flex; align-items: center; gap: 12px;
  background: #fff; transition: all 0.12s;
}
.client-option:hover   { border-color: #93C5FD; background: #F0F9FF; }
.client-option.selected{ border-color: #1C64F2; background: #EFF6FF; }
.client-avatar {
  width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}

/* PDF */
.pdf-preview {
  background: #fff; color: #111827; border-radius: 8px; padding: 32px;
  max-width: 700px; margin: 0 auto; font-size: 13px; line-height: 1.5;
}
.pdf-preview table { width: 100%; border-collapse: collapse; }
.pdf-preview th, .pdf-preview td { padding: 8px 12px; border: 1px solid #E5E7EB; }
.pdf-preview thead { background: #1F2937; color: #fff; }

/* Misc */
.divider { height: 1px; background: #F3F4F6; margin: 16px 0; }
.section-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.7px; color: #9CA3AF; font-weight: 600; margin-bottom: 12px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeIn 0.2s ease; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
.gap-2{gap:8px;} .gap-3{gap:12px;} .gap-4{gap:16px;}
.mb-2{margin-bottom:8px;} .mb-3{margin-bottom:12px;} .mb-4{margin-bottom:16px;} .mb-5{margin-bottom:20px;} .mb-6{margin-bottom:24px;}
.mt-2{margin-top:8px;} .mt-3{margin-top:12px;} .mt-4{margin-top:16px;} .mt-6{margin-top:24px;}
.flex{display:flex;} .items-center{align-items:center;} .justify-between{justify-content:space-between;}
.grid{display:grid;} .grid-cols-2{grid-template-columns:repeat(2,1fr);} .grid-cols-3{grid-template-columns:repeat(3,1fr);}
.text-center{text-align:center;} .hidden{display:none!important;}
@media(max-width:768px){ .sidebar{display:none;} .main-area{padding:16px;} }

/* ════════════════════
   DECOR / CATERING MODULES
════════════════════ */
.drop-zone {
  border: 2px dashed #D1D5DB; border-radius: 10px; padding: 24px;
  text-align: center; cursor: pointer; background: #F9FAFB; transition: all 0.15s;
}
.drop-zone:hover, .drop-zone.drag-active { border-color: #1C64F2; background: #EFF6FF; }

/* Spinner */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid #E5E7EB;
  border-top-color: #1C64F2;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  position: absolute; inset: 0; background: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center; z-index: 10;
  border-radius: 12px;
}
/* Bottom sheet cart */
.bottom-sheet {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid #E5E7EB;
  border-radius: 16px 16px 0 0; z-index: 50;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.12);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  max-height: 70vh; overflow-y: auto;
}
.bottom-sheet.collapsed { transform: translateY(calc(100% - 56px)); }
.bottom-sheet-handle {
  display: flex; align-items: center; justify-content: center;
  padding: 12px; cursor: pointer; user-select: none;
}
.bottom-sheet-handle::before {
  content: ''; width: 36px; height: 4px;
  background: #D1D5DB; border-radius: 2px;
}
/* Mobile sidebar overlay */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(17,24,39,0.5); z-index: 29;
}
@media(max-width:768px) {
  .sidebar { position: fixed; top: 56px; left: -260px; z-index: 30; transition: left 0.25s ease; }
  .sidebar.mobile-open { left: 0; }
  .sidebar-overlay.active { display: block; }
  .bottom-sheet { left: 0; }
}
/* Stat card */
.stat-card { background:#fff; border:1px solid #E5E7EB; border-radius:12px; padding:18px 20px; }
