:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #5b6475;
  --primary: #1e2a78; /* royal blue */
  --primary-600: #1a2464;
  --gold: #b68c2a; /* royal gold */
  --gold-600: #9f7620;
  --secondary: #5b2a86; /* royal purple */
  --accent: #2a9d8f; /* emerald/teal */
  --rose: #8b1e3f; /* royal maroon */
  --header-h: 72px;
  --border: #e6e8ef;
  --shadow: 0 10px 30px rgba(10, 22, 70, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Cosmic animated background container (must sit above body background) */
.cosmic-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; display: none; background: radial-gradient(50% 80% at 50% 0%, rgba(30,42,120,0.08), transparent), radial-gradient(60% 50% at 100% 100%, rgba(182,140,42,0.10), transparent); }
#cosmic-canvas { width: 100%; height: 100%; display: block; opacity: .9; }
/* Anchor scroll offset for sticky header */
.section, .hero, .quote { scroll-margin-top: var(--header-h); }

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: #fff; font-weight: 700; }
.brand-name { font-weight: 700; color: var(--primary); font-family: "Playfair Display", Georgia, serif; letter-spacing: .2px; }
.nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nav a { color: var(--text); font-weight: 500; padding: 8px 10px; border-radius: 8px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--secondary)); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; border-radius: 2px; }
.nav a:hover { background: #f2f4f8; text-decoration: none; }
.nav a:hover::after { transform: scaleX(1); }
.nav a.active { color: var(--primary); background: #eef2ff; }
.nav a.active::after { transform: scaleX(1); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 12px 18px; font-weight: 600; border: 1px solid transparent; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.btn-small { padding: 8px 12px; box-shadow: none; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #d9a93a); color: #fff; }
.btn-gold:hover { background: var(--gold-600); }
.btn-ghost { background: #fff; color: var(--primary); border-color: var(--primary); box-shadow: none; }
.btn-ghost:hover { background: #eef2ff; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(10,22,70,0.12); }

.hero {
  background:
    radial-gradient(1400px 600px at -10% -10%, rgba(30,42,120,0.12) 0%, transparent 60%),
    radial-gradient(1200px 500px at 110% -20%, rgba(182,140,42,0.18) 0%, transparent 55%),
    radial-gradient(1000px 500px at 50% 120%, rgba(91,42,134,0.10) 0%, transparent 60%),
    linear-gradient(0deg, #ffffff, #ffffff);
  border-bottom: 1px solid var(--border);
}
.hero-inner { padding: 64px 0; }
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; }
.hero-media img { width: 100%; border-radius: 18px; border: 1px solid var(--border); box-shadow: 0 30px 60px rgba(10,22,70,0.20); }
.tilt { will-change: transform; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero h1 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(28px, 5vw, 44px); line-height: 1.2; margin: 0 0 12px; color: var(--primary); }
.hero p { font-size: 18px; color: var(--muted); max-width: 720px; }
.hero-ctas { display: flex; gap: 12px; margin: 18px 0 8px; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 16px; margin: 10px 0 0; padding: 0; list-style: none; color: var(--muted); font-weight: 600; }

.section { padding: 56px 0; background-image: linear-gradient(180deg, rgba(30,64,175,0.06), rgba(59,130,246,0.04)); background-repeat: no-repeat; }
.surface { background: #fcfdff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background-image: linear-gradient(180deg, rgba(30,64,175,0.07), rgba(59,130,246,0.05)); background-repeat: no-repeat; }
.surface { background-image: radial-gradient(12px 12px at 10% 10%, rgba(30,42,120,0.04) 25%, transparent 26%), radial-gradient(10px 10px at 80% 20%, rgba(182,140,42,0.05) 25%, transparent 26%); background-repeat: repeat; background-size: 280px 220px, 220px 200px; }
.section-title { margin: 0 0 14px; font-family: "Playfair Display", Georgia, serif; font-size: clamp(22px, 4vw, 32px); color: var(--primary); position: relative; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 72px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--secondary), var(--accent)); }
.muted { color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; text-align: center; box-shadow: var(--shadow); }
.stat-label { display: block; color: var(--muted); font-size: 12px; }
.stat-value { display: block; font-weight: 700; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; /* overflow: hidden; */ }
.card > img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }
.card h3 { margin: 0 0 6px; font-size: 20px; }
.price { color: var(--gold-600); font-weight: 700; margin-bottom: 8px; }
.card ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(10,22,70,0.12); border-color: rgba(30,42,120,0.25); }

.checklist { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 18px; padding-left: 0; list-style: none; }
.checklist li { position: relative; padding-left: 26px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 800; }

.pill-list { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { background: #eef2ff; color: var(--primary-600); padding: 8px 12px; border-radius: 999px; border: 1px solid #e2e8ff; font-weight: 600; transition: transform .18s ease, background-color .18s ease, color .18s ease; }
.pill:hover { transform: translateY(-2px); background: #e7ecff; color: var(--primary); }

.address { font-style: normal; color: var(--muted); }
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }

label { display: block; font-weight: 600; margin: 10px 0 6px; }
input, textarea, select { width: 100%; padding: 12px 12px; border-radius: 10px; border: 1px solid var(--border); background: #fff; font: inherit; color: var(--text); }
input:focus, textarea:focus, select:focus { outline: 3px solid #e5e7ff; border-color: var(--primary); }
select { cursor: pointer; }
select:disabled { background-color: #f3f4f6; cursor: not-allowed; opacity: 0.5; }
.form-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.form-msg { margin-top: 10px; font-weight: 600; }

.testimonial { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.testimonial blockquote { margin: 10px 0; font-style: italic; }
.stars { color: #f59e0b; font-size: 18px; }
.cite { color: var(--muted); }

.site-footer { background: var(--surface); border-top: 1px solid var(--border); }
.footer-inner { padding: 18px 0; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.tagline { color: var(--muted); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .6s ease, transform .6s ease; will-change: opacity, transform; }
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .product-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 40px 0; }
  .hero-inner { grid-template-columns: 1fr; }
}

/* ============================================
   ADMIN PAGES STYLES
   ============================================ */

/* Hamburger Menu - Enhanced Design */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  z-index: 101;
  position: relative;
  transition: transform 0.3s ease;
}

.hamburger-menu:hover {
  transform: scale(1.1);
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hamburger-menu[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
  background: linear-gradient(90deg, var(--primary-600), var(--secondary));
}

.hamburger-menu[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-menu[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
  background: linear-gradient(90deg, var(--primary-600), var(--secondary));
}

/* Navigation Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: var(--header-h, 72px);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  /* display: block; */
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Mobile Navigation Menu */
@media (max-width: 768px) {
  .hamburger-menu {
    display: flex !important;
  }
  
  .nav {
    position: fixed !important;
    top: var(--header-h, 72px) !important;
    right: -100% !important;
    width: 300px !important;
    max-width: 85vw !important;
    height: calc(100vh - var(--header-h, 72px)) !important;
    background: linear-gradient(180deg, var(--surface) 0%, #fafbfc 100%) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 24px !important;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15) !important;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 100 !important;
    overflow-y: auto !important;
    gap: 4px !important;
    border-left: 2px solid var(--border) !important;
  }
  
  .nav.active {
    right: 0 !important;
    animation: slideInRight 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  @keyframes slideInRight {
    from {
      right: -100%;
      opacity: 0;
    }
    to {
      right: 0;
      opacity: 1;
    }
  }
  
  .nav a {
    width: 100%;
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
    margin: 2px 0;
    border: 1px solid transparent;
  }
  
  .nav a:hover {
    background: linear-gradient(135deg, #eef2ff 0%, #f3f4f6 100%);
    border-color: var(--primary);
    transform: translateX(4px);
    text-decoration: none;
  }
  
  .nav a.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 42, 120, 0.3);
  }
  
  .nav a.active::after {
    display: none;
  }
}

/* Admin Panel Logo */
.logo {
  font-weight: 700;
  color: var(--primary);
  font-size: 18px;
}

/* Filters Section */
.filters {
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filters input, 
.filters select {
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
  background: white;
}

.filters input:focus, 
.filters select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 42, 120, 0.1);
}

.filter-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Stats Cards */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
  color: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(30, 42, 120, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(30, 42, 120, 0.3);
}

.stat-card.secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
}

.stat-card h3 {
  margin: 0 0 8px 0;
  font-size: 14px;
  opacity: 0.95;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card .value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

/* Invoice Table */
.invoice-table {
  width: 100%;
  background: white;
  border-radius: 12px;
  /* overflow: hidden; */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
}

.invoice-table table {
  width: 100%;
  border-collapse: collapse;
}

.invoice-table th {
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
  padding: 14px;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--border);
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
}

.invoice-table th:hover {
  background: linear-gradient(180deg, #f3f4f6 0%, #e5e7eb 100%);
}

.invoice-table th.sortable::after {
  content: ' ⇅';
  opacity: 0.4;
  font-size: 12px;
}

.invoice-table th.sorted-asc::after {
  content: ' ↑';
  opacity: 1;
  color: var(--accent);
}

.invoice-table th.sorted-desc::after {
  content: ' ↓';
  opacity: 1;
  color: var(--accent);
}

.invoice-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.invoice-table tr:hover {
  background: #f9fafb;
}

.invoice-table tr:last-child td {
  border-bottom: none;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-cgst {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  border: 1px solid #93c5fd;
}

.badge-igst {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 1px solid #fcd34d;
}

.badge-admin {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  border: 1px solid #93c5fd;
}

.badge-invoice {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border: 1px solid #6ee7b7;
}

/* Action Buttons */
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.btn-view {
  background: linear-gradient(135deg, var(--secondary) 0%, #6d28d9 100%);
  color: white;
}

.btn-view:hover {
  background: linear-gradient(135deg, #5b21b6 0%, #6d28d9 100%);
  color: white;
}

.btn-download {
  background: linear-gradient(135deg, var(--accent) 0%, #059669 100%);
  color: white;
}

.btn-download:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  color: white;
}

.btn-delete {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
}

.btn-delete:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  color: white;
}

/* Alerts */
.alert {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 2px solid;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border-color: #6ee7b7;
}

.alert-error {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border-color: #fca5a5;
}

.no-data {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.no-data h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--text);
}

/* View Invoice Styles */
.invoice-container {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 3px solid var(--primary);
}

.invoice-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
}

.invoice-meta {
  text-align: right;
}

.invoice-meta div {
  margin-bottom: 6px;
  font-size: 14px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.info-section {
  background: #f9fafb;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.info-section h3 {
  font-size: 14px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.info-section p {
  margin: 6px 0;
  line-height: 1.7;
  color: var(--text);
}

.details-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: white;
  border-radius: 8px;
  /* overflow: hidden; */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.details-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
}

.details-table td:first-child {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  font-weight: 600;
  color: var(--primary);
  width: 180px;
}

.totals-section {
  margin-left: auto;
  width: 420px;
  margin-top: 24px;
  padding: 20px;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border-radius: 10px;
  border: 2px solid var(--border);
}

.total-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 15px;
}

.total-row.final {
  border-top: 3px solid var(--primary);
  margin-top: 16px;
  padding-top: 16px;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.amount-words {
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  padding: 20px;
  border-radius: 10px;
  margin: 24px 0;
  border: 2px solid var(--border);
  font-size: 15px;
  line-height: 1.8;
}

.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid var(--border);
  flex-wrap: wrap;
}

.btn-back {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-back:hover {
  background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: white;
}

/* Users Management */
.users-container {
  max-width: 1200px;
  margin: 0 auto;
}

.create-user-form {
  background: white;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.users-table {
  background: white;
  border-radius: 12px;
  /* overflow: hidden; */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
}

.users-table table {
  width: 100%;
  border-collapse: collapse;
}

.users-table th {
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
  padding: 14px;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--border);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
}

.users-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.users-table tr:hover {
  background: #f9fafb;
}

.form-inline {
  display: inline-block;
}

/* Invoice Form Specific Styles */
.invoice-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
}

.invoice-form-col {
  width: 100%;
}

.invoice-preview-col {
  width: 100%;
  display: flex;
  justify-content: center;
}

.invoice-preview-col .inv-a4 {
  width: 100%;
  max-width: 794px;
}

@media (min-width: 768px) {
  .invoice-two-col {
    grid-template-columns: 1fr 1fr;
  }
  
  .invoice-preview-col {
    position: sticky;
    top: 20px;
    height: fit-content;
    align-self: start;
  }
  
  .invoice-preview-col .inv-a4 {
    width: 100%;
    max-width: 600px;
    transform: scale(0.75);
    transform-origin: top left;
    margin-left: 0;
  }
}

@media (min-width: 1024px) {
  .invoice-preview-col .inv-a4 {
    transform: scale(0.85);
  }
}

@media (min-width: 1280px) {
  .invoice-preview-col .inv-a4 {
    transform: scale(1);
    max-width: 794px;
  }
}

/* Invoice PDF Preview Styles */
.inv-a4 {
  width: 794px;
  max-width: 100%;
  background: #fff;
  color: #111827;
  border: 1px solid #111827;
  margin: 0 auto;
  font-family: Arial, Helvetica, sans-serif;
}

.inv-wrap {
  padding: 8px;
}

.inv-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
}

.inv-cell {
  border: 1px solid #111827;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.3;
}

.inv-title {
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 0;
}

.inv-bold {
  font-weight: 700;
}

.inv-muted {
  color: #374151;
}

.inv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.inv-table th,
.inv-table td {
  border: 1px solid #111827;
  padding: 6px 8px;
  vertical-align: top;
}

.inv-table-top {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid #111827;
  border-left: 1px solid #111827;
  border-right: 1px solid #111827;
  border-bottom: none;
}

.inv-table-top th,
.inv-table-top td {
  border-left: 1px solid #111827;
  border-right: 1px solid #111827;
  border-top: none;
  border-bottom: none;
  padding: 6px 8px;
  vertical-align: top;
  font-size: 12px;
}

.inv-table-top th:first-child,
.inv-table-top td:first-child {
  border-left: none;
}

.inv-table-top th:last-child,
.inv-table-top td:last-child {
  border-right: none;
}

.inv-table-top tr:first-child th,
.inv-table-top tr:first-child td {
  border-top: 1px solid #111827;
}

.inv-right {
  text-align: right;
}

.inv-center {
  text-align: center;
}

.inv-no-border {
  border: 0 !important;
}

.inv-footnote {
  font-size: 11px;
  color: #374151;
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 14px 24px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
  z-index: 10000;
  font-size: 14px;
  font-weight: 600;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
              opacity 0.4s ease;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

/* Print Styles */
@media print {
  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  .site-header,
  .nav,
  .nav-overlay,
  .hamburger-menu,
  form,
  .action-buttons {
    display: none !important;
  }
  
  .inv-a4 {
    width: 210mm;
    border: none;
    box-shadow: none;
  }
  
  .invoice-container {
    box-shadow: none;
    padding: 0;
    border: none;
  }
}

