/* ============================================================
   EASYWAREHOUSE — Design System
   Mobile-first · No framework dependencies
   ============================================================ */

/* -------------------------------------------------------
   1. CUSTOM PROPERTIES
   ------------------------------------------------------- */
:root {
  /* Brand */
  --brand:        #1e6fcc;
  --brand-dark:   #155ead;
  --brand-light:  #e8f1fb;
  --brand-muted:  #c8ddf5;

  /* Semantici */
  --success:      #1a9e4a;
  --success-bg:   #e8f8ee;
  --warning:      #d97706;
  --warning-bg:   #fef3c7;
  --danger:       #dc2626;
  --danger-bg:    #fee2e2;
  --info:         #0891b2;
  --info-bg:      #e0f2fe;

  /* Grigi */
  --gray-50:      #f9fafb;
  --gray-100:     #f3f4f6;
  --gray-200:     #e5e7eb;
  --gray-300:     #d1d5db;
  --gray-400:     #9ca3af;
  --gray-500:     #6b7280;
  --gray-600:     #4b5563;
  --gray-700:     #374151;
  --gray-800:     #1f2937;
  --gray-900:     #111827;
  --white:        #ffffff;

  /* Tipografia */
  --font-sans:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;
  --text-xs:      .75rem;
  --text-sm:      .875rem;
  --text-base:    1rem;
  --text-lg:      1.125rem;
  --text-xl:      1.25rem;
  --text-2xl:     1.5rem;
  --text-3xl:     1.875rem;
  --fw-normal:    400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;
  --leading:      1.6;

  /* Layout */
  --radius-sm:    4px;
  --radius:       8px;
  --radius-lg:    12px;
  --radius-xl:    16px;
  --radius-full:  9999px;

  /* Ombre */
  --shadow-xs:    0 1px 2px rgba(0,0,0,.06);
  --shadow-sm:    0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow:       0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.06);
  --shadow-md:    0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.06);
  --shadow-lg:    0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.06);

  /* Transizioni */
  --ease:         cubic-bezier(.4,0,.2,1);
  --duration:     150ms;

  /* Spaziature */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading);
  color: var(--gray-800);
  background: var(--gray-100);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* -------------------------------------------------------
   3. TIPOGRAFIA
   ------------------------------------------------------- */
h1 { font-size: var(--text-2xl); font-weight: var(--fw-bold);    line-height: 1.25; margin-bottom: var(--space-4); }
h2 { font-size: var(--text-xl);  font-weight: var(--fw-semibold); line-height: 1.3;  margin-bottom: var(--space-3); }
h3 { font-size: var(--text-lg);  font-weight: var(--fw-semibold); line-height: 1.35; margin-bottom: var(--space-2); }
h4 { font-size: var(--text-base);font-weight: var(--fw-semibold); }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

small { font-size: var(--text-xs); color: var(--gray-500); }
strong { font-weight: var(--fw-semibold); }

/* -------------------------------------------------------
   4. LAYOUT
   ------------------------------------------------------- */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.main-content {
  flex: 1;
  padding: var(--space-6) var(--space-4);
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* Grid helpers */
.grid-2  { display: grid; grid-template-columns: repeat(2, 1fr);   gap: var(--space-4); }
.grid-3  { display: grid; grid-template-columns: repeat(3, 1fr);   gap: var(--space-4); }
.grid-4  { display: grid; grid-template-columns: repeat(4, 1fr);   gap: var(--space-4); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-4); }

/* Flex helpers */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap     { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.flex-col     { display: flex; flex-direction: column; }

/* Spacing / text utilities */
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.text-upper { text-transform: uppercase; letter-spacing: .04em; }

/* -------------------------------------------------------
   5. NAVBAR
   ------------------------------------------------------- */
.navbar {
  background: var(--brand);
  background: linear-gradient(135deg, #1a5fb4 0%, #1e6fcc 100%);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 60px;
  padding: 0 var(--space-5);
  max-width: 1400px;
  margin: 0 auto;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}
.navbar-brand a {
  color: var(--white);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  letter-spacing: -.02em;
  text-decoration: none;
  white-space: nowrap;
}
.navbar-brand .brand-icon {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.navbar-menu {
  display: none;  /* nascosta su mobile, visibile da 769px */
  align-items: center;
  gap: 2px;
  flex: 1;
  overflow: visible;
  flex-wrap: wrap;
}
@media (min-width: 769px) {
  .navbar-menu { display: flex; }
}
.navbar-menu a {
  color: rgba(255,255,255,.85);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  padding: .3rem .5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background var(--duration) var(--ease), color var(--duration);
  text-decoration: none;
}
.navbar-menu a:hover,
.navbar-menu a.active {
  background: rgba(255,255,255,.15);
  color: var(--white);
}

/* Dropdown nella navbar */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > button {
  background: none;
  border: none;
  color: rgba(255,255,255,.85);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  padding: .35rem .6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .3rem;
  transition: background var(--duration) var(--ease), color var(--duration);
  white-space: nowrap;
}
.nav-dropdown > button:hover,
.nav-dropdown.open > button {
  background: rgba(255,255,255,.15);
  color: var(--white);
}
.nav-dropdown > button::after {
  content: '▾';
  font-size: .65rem;
  opacity: .7;
}
.nav-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  padding: .35rem 0;
}
.nav-dropdown.open .nav-dropdown-panel { display: block; }
/* Ultimo dropdown: apri panel allineato a destra per non uscire dallo schermo */
.nav-dropdown:last-child .nav-dropdown-panel,
#dd-admin .nav-dropdown-panel,
#dd-report .nav-dropdown-panel {
  left: auto;
  right: 0;
}
.nav-dropdown-panel a {
  display: block;
  padding: .45rem 1rem;
  color: var(--gray-700);
  font-size: var(--text-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--duration);
}
.nav-dropdown-panel a:hover { background: var(--gray-50); color: var(--brand); }
.nav-dropdown-panel hr { border: none; border-top: 1px solid var(--gray-100); margin: .3rem 0; }

.navbar-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
  flex-shrink: 0;
}
.navbar-user .user-info {
  text-align: right;
  line-height: 1.2;
}
.navbar-user .user-name {
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
}
.navbar-user .user-role {
  color: rgba(255,255,255,.65);
  font-size: var(--text-xs);
  text-transform: capitalize;
}
.navbar-user .btn-logout {
  background: rgba(255,255,255,.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.25);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  transition: background var(--duration);
  text-decoration: none;
  white-space: nowrap;
}
.navbar-user .btn-logout:hover {
  background: rgba(255,255,255,.25);
  text-decoration: none;
}

/* Hamburger */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-2);
  color: var(--white);
  cursor: pointer;
  border-radius: var(--radius);
}
.navbar-toggle:hover { background: rgba(255,255,255,.15); }
.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}
.hamburger-icon span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--duration), opacity var(--duration);
}
.navbar-toggle.open .hamburger-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle.open .hamburger-icon span:nth-child(2) { opacity: 0; }
.navbar-toggle.open .hamburger-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu drawer */
.navbar-drawer {
  display: none;
  background: #1558a8;
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid rgba(255,255,255,.1);
}
.navbar-drawer.open { display: block; }
.navbar-drawer a {
  display: block;
  color: rgba(255,255,255,.9);
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  padding: var(--space-3) var(--space-2);
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
}
.navbar-drawer a:last-child { border-bottom: none; }
.navbar-drawer a:hover { color: var(--white); }
.navbar-drawer a.drawer-active {
  color: var(--white);
  background: rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  font-weight: var(--fw-semibold);
}

/* -------------------------------------------------------
   6. PAGE HEADER
   ------------------------------------------------------- */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}
.page-header h1 { margin-bottom: 0; }
.page-header-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* -------------------------------------------------------
   7. CARDS
   ------------------------------------------------------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}
.card:last-child { margin-bottom: 0; }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--gray-200);
}
.card-title {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--gray-800);
}
.card-subtitle {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-top: var(--space-1);
}

/* Card con bordo colorato a sinistra */
.card-brand   { border-left: 4px solid var(--brand); }
.card-success { border-left: 4px solid var(--success); }
.card-warning { border-left: 4px solid var(--warning); }
.card-danger  { border-left: 4px solid var(--danger); }
.card-info    { border-left: 4px solid var(--info); }

/* -------------------------------------------------------
   8. KPI / STAT CARDS
   ------------------------------------------------------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.kpi-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--duration) var(--ease);
}
.kpi-card:hover { box-shadow: var(--shadow); }

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.kpi-card.kpi-success::before { background: var(--success); }
.kpi-card.kpi-warning::before { background: var(--warning); }
.kpi-card.kpi-danger::before  { background: var(--danger); }

.kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: var(--space-3);
}
.kpi-card.kpi-success .kpi-icon { background: var(--success-bg); color: var(--success); }
.kpi-card.kpi-warning .kpi-icon { background: var(--warning-bg); color: var(--warning); }
.kpi-card.kpi-danger  .kpi-icon { background: var(--danger-bg);  color: var(--danger); }

.kpi-numero {
  display: block;
  font-size: 2rem;
  font-weight: var(--fw-bold);
  line-height: 1;
  color: var(--gray-900);
  margin-bottom: var(--space-1);
}
.kpi-label {
  display: block;
  font-size: var(--text-sm);
  color: var(--gray-500);
  font-weight: var(--fw-medium);
}

/* -------------------------------------------------------
   9. BOTTONI
   ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  font-family: inherit;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.5;
  user-select: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Varianti */
.btn-primary   { background: var(--brand);   color: var(--white);      border-color: var(--brand);   }
.btn-primary:hover   { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-secondary { background: var(--white);   color: var(--gray-700);   border-color: var(--gray-300); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { background: var(--gray-50); }
.btn-success   { background: var(--success); color: var(--white);      border-color: var(--success); }
.btn-success:hover   { background: #15883e; border-color: #15883e; }
.btn-danger    { background: var(--danger);  color: var(--white);      border-color: var(--danger);  }
.btn-danger:hover    { background: #b91c1c; border-color: #b91c1c; }
.btn-warning   { background: var(--warning); color: var(--white);      border-color: var(--warning); }
.btn-warning:hover   { background: #b45309; border-color: #b45309; }
.btn-ghost     { background: transparent; color: var(--gray-600); border-color: transparent; }
.btn-ghost:hover     { background: var(--gray-100); }

/* Dimensioni */
.btn-xs  { padding: 2px var(--space-2); font-size: var(--text-xs); }
.btn-sm  { padding: var(--space-1) var(--space-3); font-size: var(--text-sm); }
.btn-lg  { padding: var(--space-3) var(--space-6); font-size: var(--text-base); }
.btn-xl  { padding: var(--space-4) var(--space-8); font-size: var(--text-lg); border-radius: var(--radius-lg); }
.btn-full { width: 100%; }

/* -------------------------------------------------------
   10. FORM
   ------------------------------------------------------- */
.form-section { margin-bottom: var(--space-6); }
.form-section-title {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--gray-200);
}

.form-group {
  margin-bottom: var(--space-4);
}
.form-group:last-child { margin-bottom: 0; }

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--gray-700);
  margin-bottom: var(--space-1);
}
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-label small { font-weight: var(--fw-normal); color: var(--gray-400); margin-left: var(--space-2); }

.form-control {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(30, 111, 204, .15);
}
.form-control:disabled { background: var(--gray-100); color: var(--gray-500); cursor: not-allowed; }
.form-control.error    { border-color: var(--danger); }
.form-control.error:focus { box-shadow: 0 0 0 3px rgba(220,38,38,.15); }

/* Select con freccia custom */
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}

textarea.form-control { resize: vertical; min-height: 80px; }

/* Shorthand per usare nei file esistenti */
.form-group label  { display: block; font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--gray-700); margin-bottom: var(--space-1); }
.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  transition: border-color var(--duration), box-shadow var(--duration);
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(30,111,204,.15);
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}
.form-group input[type="checkbox"],
.form-group input[type="radio"] {
  width: auto;
  margin-right: var(--space-2);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0 var(--space-4);
  align-items: start;
}
.form-row .form-group { margin-bottom: var(--space-4); }

.form-hint { font-size: var(--text-xs); color: var(--gray-500); margin-top: var(--space-1); }
.form-error { font-size: var(--text-xs); color: var(--danger); margin-top: var(--space-1); }

/* Checkbox / radio custom */
.check-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-size: var(--text-sm);
}
input[type="checkbox"] { accent-color: var(--brand); width: 16px; height: 16px; cursor: pointer; }
input[type="radio"]    { accent-color: var(--brand); }

/* Toolbar filtri */
.filter-bar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.filter-bar input:not([type="checkbox"]):not([type="radio"]),
.filter-bar select {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--gray-50);
  color: var(--gray-800);
  min-width: 160px;
  appearance: none;
  -webkit-appearance: none;
}
.filter-bar input[type="checkbox"],
.filter-bar input[type="radio"] {
  min-width: auto;
  appearance: auto;
  -webkit-appearance: auto;
}
.filter-bar input:focus,
.filter-bar select:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(30,111,204,.1);
}

/* -------------------------------------------------------
   11. TABELLE
   ------------------------------------------------------- */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: var(--text-sm);
}

.table thead th {
  background: var(--gray-50);
  color: var(--gray-600);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
  text-align: left;
}

.table tbody td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-800);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--gray-50); }

.table tfoot td {
  padding: var(--space-3) var(--space-4);
  font-weight: var(--fw-semibold);
  background: var(--gray-50);
  border-top: 2px solid var(--gray-200);
}

.table .td-actions { white-space: nowrap; text-align: right; }
.table .td-num     { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.row-warning td { background: var(--warning-bg); }
.table tr.row-danger  td { background: var(--danger-bg); }
.table .td-center  { text-align: center; }

/* -------------------------------------------------------
   12. BADGE / STATO
   ------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: .03em;
  white-space: nowrap;
  line-height: 1.5;
}

/* Stati ordine */
.stato-inserito        { background: var(--gray-100);   color: var(--gray-600); }
.stato-confermato      { background: var(--info-bg);    color: var(--info); }
.stato-in_preparazione { background: var(--warning-bg); color: var(--warning); }
.stato-preparato       { background: #ede9fe;            color: #6d28d9; }
.stato-proforma_emessa { background: #fce7f3;            color: #9d174d; }
.stato-in_consegna     { background: #fff7ed;            color: #c2410c; }
.stato-consegnato      { background: var(--success-bg); color: var(--success); }
.stato-fatturato       { background: var(--success-bg); color: var(--success); }
.stato-annullato       { background: var(--danger-bg);  color: var(--danger); }

/* Tipi generici */
.badge-gray    { background: var(--gray-100); color: var(--gray-600); }
.badge-brand   { background: var(--brand-light); color: var(--brand); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger); }

/* -------------------------------------------------------
   13. ALERT / FLASH
   ------------------------------------------------------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  animation: slideDown .2s var(--ease);
}
.alert-icon { flex-shrink: 0; font-size: 1rem; line-height: 1.5; }

.alert-success { background: var(--success-bg); color: #14532d; border-color: #bbf7d0; }
.alert-error   { background: var(--danger-bg);  color: #7f1d1d; border-color: #fecaca; }
.alert-warning { background: var(--warning-bg); color: #78350f; border-color: #fed7aa; }
.alert-info    { background: var(--info-bg);    color: #0c4a6e; border-color: #bae6fd; }

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

/* -------------------------------------------------------
   14. PAGINAZIONE
   ------------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 var(--space-2);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
  transition: all var(--duration);
  text-decoration: none;
}
.pagination a:hover { background: var(--gray-50); border-color: var(--gray-400); text-decoration: none; }
.pagination .active { background: var(--brand); color: var(--white); border-color: var(--brand); }

/* -------------------------------------------------------
   15. LOGIN PAGE
   ------------------------------------------------------- */
body.login-page {
  background: linear-gradient(135deg, #1a5fb4 0%, #1e6fcc 50%, #0891b2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-4);
}

.login-wrap {
  width: 100%;
  max-width: 400px;
}

.login-logo {
  text-align: center;
  margin-bottom: var(--space-6);
}
.login-logo .logo-icon {
  width: 64px; height: 64px;
  background: rgba(255,255,255,.2);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto var(--space-3);
}
.login-logo h1 {
  color: var(--white);
  font-size: var(--text-xl);
  margin: 0;
}
.login-logo p {
  color: rgba(255,255,255,.75);
  font-size: var(--text-sm);
  margin: var(--space-1) 0 0;
}

.login-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-8);
}
.login-card h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
  color: var(--gray-800);
}

/* -------------------------------------------------------
   16. DASHBOARD
   ------------------------------------------------------- */
.welcome-bar {
  background: linear-gradient(135deg, var(--brand) 0%, #0891b2 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  color: var(--white);
  margin-bottom: var(--space-6);
  position: relative;
  overflow: hidden;
}
.welcome-bar::after {
  content: '';
  position: absolute;
  right: -20px; top: -20px;
  width: 150px; height: 150px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}
.welcome-bar h2 { color: var(--white); margin-bottom: var(--space-1); font-size: var(--text-2xl); }
.welcome-bar p  { color: rgba(255,255,255,.8); margin: 0; font-size: var(--text-sm); }

/* -------------------------------------------------------
   17. ORDINE — CARRELLO / MOBILE
   ------------------------------------------------------- */
/* Griglia articoli */
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-2);
}

.art-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: border-color var(--duration), box-shadow var(--duration);
}
.art-card:hover { border-color: var(--brand-muted); box-shadow: var(--shadow-sm); }
.art-card.in-cart { border-color: var(--brand); background: var(--brand-light); }
.art-card.art-card-frozen { border-left: 3px solid var(--info); }

.art-card-info { flex: 1; min-width: 0; }
.art-card-name {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.art-card-meta { font-size: var(--text-xs); color: var(--gray-500); }
.art-card-conf {
  display: inline-block;
  font-size: .65rem;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: var(--radius-full);
  padding: .1rem .45rem;
  font-weight: var(--fw-medium);
}
.art-card-price { font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--brand); }

.qty-control {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.qty-btn {
  width: 32px; height: 32px;
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
  font-size: 1.1rem;
  font-weight: var(--fw-bold);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--duration);
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.qty-btn:hover  { background: var(--gray-100); border-color: var(--gray-400); }
.qty-btn:active { background: var(--gray-200); transform: scale(.95); }
.qty-btn.plus   { background: var(--brand); color: var(--white); border-color: var(--brand); }
.qty-btn.plus:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

.qty-input {
  width: 52px;
  text-align: center;
  padding: var(--space-1);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
}
.qty-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px rgba(30,111,204,.15); }

/* Carrello fisso in basso su mobile */
.cart-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -4px 12px rgba(0,0,0,.1);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  z-index: 50;
}
.cart-bar-info { line-height: 1.3; }
.cart-bar-count { font-size: var(--text-sm); color: var(--gray-500); }
.cart-bar-total { font-size: var(--text-xl); font-weight: var(--fw-bold); color: var(--gray-900); }

/* Tab categorie */
.cat-tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.cat-tab {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-600);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: all var(--duration);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.cat-tab:hover  { border-color: var(--brand-muted); color: var(--brand); }
.cat-tab.active { background: var(--brand); color: var(--white); border-color: var(--brand); }

/* Autocomplete dropdown */
.autocomplete-list {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 200;
  max-height: 280px;
  overflow-y: auto;
}
.autocomplete-list li {
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--duration);
}
.autocomplete-list li:last-child { border-bottom: none; }
.autocomplete-list li:hover { background: var(--brand-light); }
.autocomplete-list .no-results { color: var(--gray-400); font-style: italic; cursor: default; }

/* -------------------------------------------------------
   18. PREPARAZIONE — Checklist
   ------------------------------------------------------- */
.prep-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--duration);
}
.prep-row:last-child { border-bottom: none; }
.prep-row.done { background: var(--success-bg); }
.prep-row.warn { background: var(--warning-bg); }

.prep-check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  accent-color: var(--success);
  cursor: pointer;
}
.prep-art-name  { font-weight: var(--fw-semibold); font-size: var(--text-base); }
.prep-art-code  { font-size: var(--text-xs); color: var(--gray-400); }
.prep-qta-ord   { margin-left: auto; font-size: var(--text-lg); font-weight: var(--fw-bold); white-space: nowrap; }
.prep-qta-input {
  width: 90px;
  text-align: center;
  padding: var(--space-2);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
}
.prep-qta-input:focus { outline: none; border-color: var(--success); box-shadow: 0 0 0 2px rgba(26,158,74,.15); }
.prep-ok-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: var(--success-bg);
  color: var(--success);
  border: 1.5px solid #bbf7d0;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--duration);
  flex-shrink: 0;
}
.prep-ok-btn:hover { background: var(--success); color: var(--white); }

/* -------------------------------------------------------
   19. CONSEGNA — Mobile cards
   ------------------------------------------------------- */
.delivery-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}
.delivery-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}
.delivery-customer { font-size: var(--text-lg); font-weight: var(--fw-bold); }
.delivery-address  { font-size: var(--text-sm); color: var(--gray-500); }
.delivery-phone    { font-size: var(--text-sm); color: var(--brand); font-weight: var(--fw-medium); }

.delivery-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--gray-100);
}
.delivery-item:last-child { border-bottom: none; }
.delivery-item-name { flex: 1; font-size: var(--text-sm); font-weight: var(--fw-medium); }
.delivery-item-qta  { font-size: var(--text-base); font-weight: var(--fw-bold); min-width: 60px; text-align: right; }

.delivery-qta-input {
  width: 80px;
  text-align: center;
  padding: var(--space-2);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
}
.delivery-qta-input.resa {
  border-color: var(--warning);
  background: var(--warning-bg);
}

/* -------------------------------------------------------
   20. FOOTER
   ------------------------------------------------------- */
.footer {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: var(--space-4) var(--space-6);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-top: auto;
}

/* -------------------------------------------------------
   21. UTILITY
   ------------------------------------------------------- */
.text-xs      { font-size: var(--text-xs); }
.text-sm      { font-size: var(--text-sm); }
.text-base    { font-size: var(--text-base); }
.text-muted   { color: var(--gray-500); }
.text-danger  { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-brand   { color: var(--brand); }
.text-right   { text-align: right; }
.text-center  { text-align: center; }
.fw-bold      { font-weight: var(--fw-bold); }
.fw-semibold  { font-weight: var(--fw-semibold); }
.fw-normal    { font-weight: var(--fw-normal); }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

.w-full  { width: 100%; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; }

.divider { border: none; border-top: 1px solid var(--gray-200); margin: var(--space-4) 0; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-4);
  color: var(--gray-500);
}
.empty-state-icon { font-size: 3rem; margin-bottom: var(--space-3); opacity: .5; }
.empty-state h3   { color: var(--gray-700); margin-bottom: var(--space-2); }

/* Errore 403 */
.error-page { text-align: center; padding: var(--space-12) var(--space-4); }
.error-page h1 { font-size: var(--text-3xl); color: var(--danger); margin-bottom: var(--space-2); }

/* -------------------------------------------------------
   22. KANBAN (Preparazione)
   ------------------------------------------------------- */
.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  align-items: start;
}
.kanban-col { }
.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
}
.kanban-col-da     .kanban-col-header { background: var(--warning-bg); color: var(--warning); }
.kanban-col-in     .kanban-col-header { background: var(--info-bg);    color: var(--info); }
.kanban-col-fatto  .kanban-col-header { background: var(--success-bg); color: var(--success); }

.kanban-body {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  min-height: 200px;
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.kanban-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--gray-200);
  padding: var(--space-3) var(--space-4);
}
.kanban-card-num  { font-size: var(--text-xs); color: var(--gray-400); }
.kanban-card-cust { font-weight: var(--fw-semibold); font-size: var(--text-sm); }
.kanban-card-meta { font-size: var(--text-xs); color: var(--gray-500); }
.kanban-card-actions { margin-top: var(--space-3); display: flex; gap: var(--space-2); }

/* -------------------------------------------------------
   23. RESPONSIVE
   ------------------------------------------------------- */

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .kanban { grid-template-columns: 1fr; }
  .kanban-col-header { border-radius: var(--radius); }
  .kanban-body { border-radius: var(--radius); border: 1px solid var(--gray-200); }
}

/* Tablet ≤ 768px */
@media (max-width: 768px) {
  :root { --text-base: .9375rem; }

  .navbar-toggle { display: flex; }
  .navbar-user .user-info { display: none; }

  .main-content { padding: var(--space-4) var(--space-3); }

  h1 { font-size: var(--text-xl); }
  h2 { font-size: var(--text-lg); }

  .page-header { flex-direction: column; align-items: stretch; }
  .page-header-actions { justify-content: flex-end; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .kpi-grid { grid-template-columns: repeat(2, 1fr); }

  .table thead { display: none; }
  .table tbody tr {
    display: block;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: var(--space-3);
    background: var(--white);
    box-shadow: var(--shadow-xs);
  }
  .table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) var(--space-3);
    border-bottom: 1px solid var(--gray-100);
    text-align: right;
  }
  .table tbody td:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .table tbody td:last-child  { border-bottom: none; border-radius: 0 0 var(--radius) var(--radius); }
  .table tbody td::before {
    content: attr(data-label);
    font-weight: var(--fw-semibold);
    font-size: var(--text-xs);
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .04em;
    text-align: left;
    flex-shrink: 0;
    margin-right: var(--space-2);
  }
  /* Eccezioni per tabelle critiche che devono restare normali su tablet */
  .table-keep thead { display: table-header-group; }
  .table-keep tbody tr  { display: table-row; border: none; margin: 0; box-shadow: none; }
  .table-keep tbody td  { display: table-cell; text-align: left; border-bottom: 1px solid var(--gray-100); }
  .table-keep tbody td::before { display: none; }

  .filter-bar { gap: var(--space-2); }
  .filter-bar input,
  .filter-bar select { min-width: 0; flex: 1; }

  .cart-bar { padding: var(--space-2) var(--space-3); }

  /* Bottoni più grandi su mobile per touch */
  .btn { min-height: 40px; }
  .btn-xl { min-height: 56px; }

  .login-card { padding: var(--space-6); }
}

/* Mobile ≤ 480px */
@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .navbar-inner { padding: 0 var(--space-3); }
  .main-content { padding: var(--space-3) var(--space-2); }

  .card { padding: var(--space-4); }
  .login-card { padding: var(--space-5); }

  /* Griglia articoli su mobile: una sola colonna */
  .art-grid { grid-template-columns: 1fr; }

  /* Nasconde elementi secondari */
  .hide-mobile { display: none !important; }

  /* Tabella preparazione e consegna: rimangono tabelle normali */
  .table-prep, .table-cons {
    font-size: var(--text-sm);
  }
  .table-prep td, .table-cons td {
    padding: var(--space-2) var(--space-2);
  }
}

/* -------------------------------------------------------
   24. PRINT
   ------------------------------------------------------- */
@media print {
  .navbar, .footer, .no-print,
  .btn, .filter-bar, .pagination,
  .page-header-actions { display: none !important; }

  body { background: white; font-size: 11pt; color: black; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .table { font-size: 10pt; }
  .main-content { padding: 0; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  @page { margin: 15mm; }
}

/* -------------------------------------------------------
   25. DARK THEME
   ------------------------------------------------------- */
[data-theme="dark"] {
  --brand:        #4a9eff;
  --brand-dark:   #3a8eef;
  --brand-light:  #1a2a40;
  --brand-muted:  #2a3a50;

  --success:      #34d399;
  --success-bg:   #0f2a1f;
  --warning:      #fbbf24;
  --warning-bg:   #2a2000;
  --danger:       #f87171;
  --danger-bg:    #2a0f0f;
  --info:         #22d3ee;
  --info-bg:      #0a2a30;

  --gray-50:      #1a1a2e;
  --gray-100:     #1f2037;
  --gray-200:     #2a2b42;
  --gray-300:     #3a3b55;
  --gray-400:     #6b7280;
  --gray-500:     #9ca3af;
  --gray-600:     #d1d5db;
  --gray-700:     #e5e7eb;
  --gray-800:     #f3f4f6;
  --gray-900:     #f9fafb;
  --white:        #0f0f1a;

  color-scheme: dark;
}

[data-theme="dark"] body {
  background: #0a0a15;
  color: #e5e7eb;
}

[data-theme="dark"] .navbar {
  background: #111128;
  border-bottom-color: #2a2b42;
}

[data-theme="dark"] .card {
  background: #12122a;
  border-color: #2a2b42;
}

[data-theme="dark"] .table thead th {
  background: #1a1a35;
  border-color: #2a2b42;
}

[data-theme="dark"] .table td {
  border-color: #1f2040;
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: #1a1a30;
  border-color: #3a3b55;
  color: #e5e7eb;
}

[data-theme="dark"] .footer {
  background: #0a0a15;
  border-top-color: #2a2b42;
  color: #6b7280;
}

[data-theme="dark"] .alert { border-color: #2a2b42; }
[data-theme="dark"] .login-card { background: #12122a; }
[data-theme="dark"] .navbar-drawer { background: #111128; }
[data-theme="dark"] .welcome-bar { background: linear-gradient(135deg, #1a2a50 0%, #0a1a30 100%); }
