/* LEVELZ & STYLEZ - ELITE ADMIN DESIGN SYSTEM */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Cinzel:wght@600;700;800;900&display=swap');

:root {
  --bg-main: #080808;
  --bg-panel: #111111;
  --bg-panel-secondary: #171717;
  --bg-panel-elevated: #1e1e24;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-gold: rgba(201, 164, 92, 0.25);
  --border-gold-strong: rgba(201, 164, 92, 0.5);
  --text-primary: #F5F1E8;
  --text-muted: #8E8E93;
  --gold-primary: #C9A45C;
  --gold-hover: #E0BD76;
  --gold-dim: rgba(201, 164, 92, 0.12);
  --status-success: #4CAF78;
  --status-warning: #D8A94E;
  --status-danger: #C75C5C;
  --status-info: #5499C7;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

.brand-font {
  font-family: 'Cinzel', Georgia, serif;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0d0d0e;
}
::-webkit-scrollbar-thumb {
  background: #252528;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C9A45C;
}

/* Glassmorphism & Surface Tokens */
.glass-nav {
  background: rgba(13, 13, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.card-luxury {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-luxury:hover {
  border-color: rgba(201, 164, 92, 0.28);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

.card-luxury-gold {
  background: linear-gradient(145deg, #161511 0%, #111112 100%);
  border: 1px solid var(--border-gold);
  border-radius: 1rem;
  box-shadow: 0 8px 32px -8px rgba(201, 164, 92, 0.08);
}

/* Gold Accents & Badges */
.badge-gold {
  background: var(--gold-dim);
  color: var(--gold-hover);
  border: 1px solid var(--border-gold);
}

.btn-gold {
  background: linear-gradient(135deg, #C9A45C 0%, #B89047 100%);
  color: #080808;
  font-weight: 700;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #E0BD76 0%, #C9A45C 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 164, 92, 0.3);
}

.btn-luxury-secondary {
  background: #19191d;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.btn-luxury-secondary:hover {
  background: #232329;
  border-color: rgba(201, 164, 92, 0.35);
  color: #fff;
}

/* Modal & Bottom Sheet Transitions */
.modal-backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.modal-content {
  animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Transform Modals into Bottom Sheets on Mobile (<640px) */
@media (max-width: 639px) {
  .modal-backdrop {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .modal-content {
    max-width: 100% !important;
    width: 100% !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 24px !important;
    border-top-right-radius: 24px !important;
    max-height: 85vh;
    overflow-y: auto;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    animation: sheetUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
}

@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #161619;
  border: 1px solid var(--border-gold);
  color: #F5F1E8;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 500;
  animation: toastSlideIn 0.25s ease-out;
  min-width: 280px;
  max-width: 420px;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Table Responsive Styles */
@media (max-width: 768px) {
  .responsive-table thead {
    display: none;
  }
  .responsive-table tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 0.875rem;
    background: var(--bg-panel);
    padding: 0.75rem;
  }
  .responsive-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }
  .responsive-table td:last-child {
    border-bottom: none;
  }
  .responsive-table td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
}

/* Printable Docket Styles */
@media print {
  body * {
    visibility: hidden;
  }
  #printable-docket, #printable-docket * {
    visibility: visible;
  }
  #printable-docket {
    position: absolute;
    left: 0;
    top: 0;
    width: 80mm;
    padding: 10px;
    background: white !important;
    color: black !important;
    font-family: monospace;
  }
}
