/* ═══════════════════════════════════════════════════════
   CB KITCHEN — ADMIN DASHBOARD STYLES
   Luxury Dark Theme with Gold Accents
   ═══════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --bg-input: #151515;
  --bg-sidebar: #0d0d0d;

  --gold: #c9a96e;
  --gold-light: #d4ba85;
  --gold-dark: #a8893f;
  --gold-glow: rgba(201, 169, 110, 0.15);
  --gold-border: rgba(201, 169, 110, 0.25);

  --text-primary: #f0ece4;
  --text-secondary: #9a9590;
  --text-muted: #5a5550;

  --green: #4ade80;
  --green-bg: rgba(74, 222, 128, 0.1);
  --red: #f87171;
  --red-bg: rgba(248, 113, 113, 0.1);
  --blue: #60a5fa;
  --blue-bg: rgba(96, 165, 250, 0.1);
  --purple: #a78bfa;
  --purple-bg: rgba(167, 139, 250, 0.1);
  --orange: #fbbf24;
  --orange-bg: rgba(251, 191, 36, 0.1);

  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
  --shadow-gold: 0 0 20px rgba(201, 169, 110, 0.1);

  --sidebar-width: 260px;
  --header-height: 60px;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: var(--gold);
  color: var(--bg-primary);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════
   LOGIN SCREEN
   ═══════════════════════════════════════════════════════ */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060606;
  background-image:
    radial-gradient(circle at center, rgba(201, 169, 110, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(10, 10, 10, 0.9) 0%, #060606 100%);
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 460px;
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  box-shadow: 
    0 15px 35px rgba(0,0,0,0.6),
    0 0 50px rgba(201, 169, 110, 0.05);
  position: relative;
  overflow: hidden;
  animation: loginFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

@keyframes loginFadeIn {
  from { opacity: 0; transform: translateY(30px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo {
  text-align: center;
  margin-bottom: 20px;
}

.login-logo img {
  height: 72px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(201, 169, 110, 0.25));
}

.logo-fallback {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.logo-text-gold {
  color: var(--gold);
}

.logo-text-white {
  color: var(--text-primary);
}

.login-title {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 500;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.login-subtitle {
  text-align: center;
  color: var(--gold-light);
  font-family: var(--font-accent);
  font-size: 0.95rem;
  margin-bottom: 40px;
  font-style: italic;
  letter-spacing: 0.02em;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(10, 10, 10, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: all var(--transition-base);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(20, 20, 20, 0.9);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.08);
}

.form-group input::placeholder {
  color: #4c4234;
}

.login-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: var(--radius-md);
  color: var(--red);
  font-size: 0.85rem;
  margin-bottom: 24px;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(2px); }
}

.login-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  margin-top: 36px;
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0a0a0a;
  box-shadow: 0 2px 8px rgba(201, 169, 110, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 4px 16px rgba(201, 169, 110, 0.4);
  transform: translateY(-1px);
}

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

.btn-full {
  width: 100%;
  padding: 14px 20px;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}

.btn-green {
  background: rgba(74, 222, 128, 0.15);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.btn-green:hover {
  background: rgba(74, 222, 128, 0.25);
}

.btn-red {
  background: rgba(248, 113, 113, 0.15);
  color: var(--red);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.btn-red:hover {
  background: rgba(248, 113, 113, 0.25);
}

.btn-blue {
  background: rgba(96, 165, 250, 0.15);
  color: var(--blue);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.btn-blue:hover {
  background: rgba(96, 165, 250, 0.25);
}

.action-btns {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

/* ═══════════════════════════════════════════════════════
   ADMIN LAYOUT
   ═══════════════════════════════════════════════════════ */
.admin-dashboard {
  display: flex;
  min-height: 100vh;
}

/* ─── MOBILE HEADER ─── */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  align-items: center;
  gap: 16px;
  z-index: 100;
}

.hamburger-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

/* ─── SIDEBAR ─── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 200;
  transition: transform var(--transition-slow);
}

.sidebar-header {
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.sidebar-logo {
  margin-bottom: 8px;
}

.sidebar-logo img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(201, 169, 110, 0.25));
}

.admin-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--gold-glow);
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-base);
  margin-bottom: 4px;
  border: none;
  background: none;
  width: 100%;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
}

.nav-item svg {
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.nav-item:hover svg {
  opacity: 1;
}

.nav-item.active {
  background: var(--gold-glow);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

.nav-item.active svg {
  opacity: 1;
  stroke: var(--gold);
}

.nav-badge {
  margin-left: auto;
  padding: 2px 8px;
  background: rgba(201, 169, 110, 0.1);
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: 12px;
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
}

.logout-btn {
  color: var(--red) !important;
}

.logout-btn:hover {
  background: var(--red-bg) !important;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 150;
  backdrop-filter: blur(4px);
}

/* ─── MAIN CONTENT ─── */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 32px;
  min-height: 100vh;
}

/* ─── PAGES ─── */
.page {
  display: none;
  animation: fadeIn 0.3s ease;
}

.page.active {
  display: block;
}

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

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════
   STATS CARDS
   ═══════════════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.gold {
  background: var(--gold-glow);
  color: var(--gold);
}

.stat-icon.green {
  background: var(--green-bg);
  color: var(--green);
}

.stat-icon.blue {
  background: var(--blue-bg);
  color: var(--blue);
}

.stat-icon.purple {
  background: var(--purple-bg);
  color: var(--purple);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════
   DASHBOARD GRID
   ═══════════════════════════════════════════════════════ */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ═══════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.card-link:hover {
  color: var(--gold-light);
}

/* ═══════════════════════════════════════════════════════
   FILTERS BAR
   ═══════════════════════════════════════════════════════ */
.filters-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all var(--transition-base);
  outline: none;
}

.search-box input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.filter-group select {
  padding: 10px 32px 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  cursor: pointer;
  transition: all var(--transition-base);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9590' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.filter-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.filter-group select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════
   DATA TABLES
   ═══════════════════════════════════════════════════════ */
.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table thead th {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-fast);
}

.data-table tbody tr:last-child {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.data-table tbody td {
  padding: 14px 16px;
  color: var(--text-primary);
  white-space: nowrap;
  vertical-align: middle;
}

.data-table tbody td:first-child {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* ─── STATUS BADGES ─── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-badge.pending {
  background: rgba(201, 169, 110, 0.12);
  color: var(--gold);
  border: 1px solid rgba(201, 169, 110, 0.2);
}

.status-badge.pending::before {
  background: var(--gold);
}

.status-badge.approved,
.status-badge.active {
  background: rgba(74, 222, 128, 0.1);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.status-badge.approved::before,
.status-badge.active::before {
  background: var(--green);
}

.status-badge.denied,
.status-badge.cancelled,
.status-badge.suspended {
  background: rgba(248, 113, 113, 0.1);
  color: var(--red);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.status-badge.denied::before,
.status-badge.cancelled::before,
.status-badge.suspended::before {
  background: var(--red);
}

.status-badge.new {
  background: rgba(96, 165, 250, 0.1);
  color: var(--blue);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.status-badge.new::before {
  background: var(--blue);
}

.status-badge.reviewed {
  background: rgba(167, 139, 250, 0.1);
  color: var(--purple);
  border: 1px solid rgba(167, 139, 250, 0.2);
}

.status-badge.reviewed::before {
  background: var(--purple);
}

.status-badge.quoted {
  background: rgba(201, 169, 110, 0.12);
  color: var(--gold);
  border: 1px solid rgba(201, 169, 110, 0.2);
}

.status-badge.quoted::before {
  background: var(--gold);
}

.status-badge.closed {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-badge.closed::before {
  background: var(--text-muted);
}

/* ─── EMPTY STATE ─── */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.empty-state svg {
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state p {
  font-size: 0.95rem;
}

/* ═══════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  animation: modalSlideIn 0.35s var(--transition-slow);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ─── Detail Grid inside Modal ─── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-item.full-width {
  grid-column: 1 / -1;
}

.detail-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.detail-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════
   COMING SOON PAGES
   ═══════════════════════════════════════════════════════ */
.coming-soon-page {
  text-align: center;
  padding: 60px 20px;
}

.coming-soon-icon {
  margin-bottom: 24px;
  color: var(--gold);
  opacity: 0.6;
}

.coming-soon-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 12px;
}

.coming-soon-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.coming-soon-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 40px;
}

.cs-category {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: all var(--transition-base);
}

.cs-category:hover {
  border-color: var(--gold-border);
  color: var(--gold);
}

.cs-category svg {
  color: var(--gold);
  opacity: 0.6;
}

.upload-placeholder {
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 24px;
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  transition: all var(--transition-base);
}

.upload-placeholder:hover {
  border-color: var(--gold-border);
  background: var(--gold-glow);
}

.upload-placeholder svg {
  margin-bottom: 12px;
  opacity: 0.5;
}

.upload-placeholder p {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.upload-hint {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  padding: 14px 24px;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 600;
  animation: toastSlide 0.35s ease;
}

@keyframes toastSlide {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast.success {
  border-left: 3px solid var(--green);
}

.toast.error {
  border-left: 3px solid var(--red);
}

.toast.info {
  border-left: 3px solid var(--blue);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-header {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.active {
    display: block;
  }

  .main-content {
    margin-left: 0;
    padding: 80px 16px 24px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
    gap: 12px;
  }

  .stat-icon {
    width: 42px;
    height: 42px;
  }

  .stat-number {
    font-size: 1.35rem;
  }

  .page-title {
    font-size: 1.35rem;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .filters-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    min-width: 100%;
  }

  .filter-group {
    width: 100%;
  }

  .filter-group select {
    flex: 1;
  }

  .hide-mobile {
    display: none;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .data-table tbody td {
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .data-table thead th {
    padding: 10px 12px;
    font-size: 0.7rem;
  }

  .btn-sm {
    padding: 5px 8px;
    font-size: 0.7rem;
  }

  .login-card {
    padding: 32px 24px;
  }

  .coming-soon-categories {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .hide-tablet {
    display: none;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .action-btns {
    flex-direction: column;
  }

  .modal-card {
    max-height: 95vh;
    border-radius: var(--radius-lg);
  }
}

/* ─── NEW BADGES & UTILITIES APPENDED ─── */
.status-badge.reviewing {
  background: rgba(241, 196, 15, 0.12);
  color: #f1c40f;
  border: 1px solid rgba(241, 196, 15, 0.2);
}
.status-badge.reviewing::before {
  background: #f1c40f;
}

.status-badge.sent-to-manufacturer {
  background: rgba(155, 89, 182, 0.12);
  color: #9b59b6;
  border: 1px solid rgba(155, 89, 182, 0.2);
}
.status-badge.sent-to-manufacturer::before {
  background: #9b59b6;
}

.status-badge.waiting-for-manufacturer {
  background: rgba(230, 126, 34, 0.12);
  color: #e67e22;
  border: 1px solid rgba(230, 126, 34, 0.2);
}
.status-badge.waiting-for-manufacturer::before {
  background: #e67e22;
}

.status-badge.quote-ready {
  background: rgba(46, 204, 113, 0.12);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.2);
}
.status-badge.quote-ready::before {
  background: #2ecc71;
}

.status-badge.sent-to-client {
  background: rgba(26, 188, 156, 0.12);
  color: #1abc9c;
  border: 1px solid rgba(26, 188, 156, 0.2);
}
.status-badge.sent-to-client::before {
  background: #1abc9c;
}

.status-badge.accepted {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}
.status-badge.accepted::before {
  background: #2ecc71;
}

.status-badge.rejected {
  background: rgba(231, 76, 60, 0.12);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.2);
}
.status-badge.rejected::before {
  background: #e74c3c;
}

.status-badge.completed {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  border: 1px solid #2ecc71;
}
.status-badge.completed::before {
  background: #2ecc71;
}

.status-badge.expired {
  background: rgba(230, 126, 34, 0.1);
  color: #e67e22;
  border: 1px solid rgba(230, 126, 34, 0.2);
}
.status-badge.expired::before {
  background: #e67e22;
}

/* Modal form controls */
.modal-select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition-base);
}
.modal-select:focus {
  border-color: var(--gold);
}

.modal-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  resize: vertical;
  transition: border-color var(--transition-base);
}
.modal-textarea:focus {
  border-color: var(--gold);
}

.modal-text-panel {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Modal Inner Sourcing Tables */
.modal-sub-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.modal-sub-table th,
.modal-sub-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  text-align: left;
}
.modal-sub-table th {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Attachments Tags */
.attachments-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.attachments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.attachment-file-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-light);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color var(--transition-base);
}
.attachment-file-link:hover {
  color: var(--gold);
}

/* Empty notices */
.table-empty-notice {
  text-align: center;
  color: var(--text-muted);
  padding: 24px !important;
}

/* Coming soon pages */
.coming-soon-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  max-width: 600px;
  margin: 40px auto 0;
  box-shadow: var(--shadow-md);
}

.cs-icon {
  margin-bottom: 24px;
  color: var(--gold);
}

.coming-soon-card h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.coming-soon-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

