/* ==============================
   Mezzi Docs - public/style.css (mobile-off)
   - Palette e componenti attuali mantenuti
   - Tutti gli adattamenti smartphone rimossi (niente @media max-width)
   ============================== */

/* ---------- RESET & BASE TYPO ---------- */
* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; margin: 0; background: #f6f7fb; color: #222; }
header { display:flex; align-items:center; justify-content:space-between; padding: 12px 16px; background:#111827; color:#fff; } /* header "storico" (non usato da .site-header moderna, lasciato per retrocompatibilità) */
header h1 { font-size: 18px; margin: 0; }
header nav a { color: #fff; text-decoration: none; margin-left: 12px; }
main { max-width: 980px; margin: 24px auto; padding: 0 16px; }
.card { background:#fff; border-radius: 14px; padding: 16px; margin-bottom: 16px; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
h2 { margin-top: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px; border-bottom: 1px solid #eee; text-align: left; }
label { display:block; margin-top: 8px; font-weight: 600; }
input[type="text"], input[type="password"], input[type="file"] { width:100%; padding:10px; border:1px solid #ddd; border-radius:8px; margin-top:4px; }
button { margin-top:12px; padding:10px 16px; border:none; background:#2563eb; color:#fff; border-radius:8px; cursor:pointer; }
button:hover { background:#1e40af; }
.error { color: #b91c1c; font-weight: 600; }

/* ---------- BRAND PALETTE ---------- */
:root {
  --color-bg: #f7f8fb;
  --color-panel: #ffffff;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;

  --color-primary: #00a6ad;
  --color-primary-600: #00959c;
  --color-primary-700: #007d84;

  --shadow-soft: 0 10px 20px rgba(0,0,0,.08);
  --shadow-primary: 0 12px 28px rgba(0,166,173,.25);
}

body { background: var(--color-bg); color: var(--color-text); }
header.site-header { background: var(--color-panel); color: var(--color-text); border-bottom: 1px solid var(--color-border); }
header .logout { color: var(--color-primary); }
header .user-pill { background: rgba(0,166,173,.08); color: var(--color-text); }

.card { background: var(--color-panel); border: 1px solid var(--color-border); border-radius: 16px; box-shadow: var(--shadow-soft); }

button, .btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  box-shadow: var(--shadow-primary);
  transition: transform .02s ease, background .15s ease;
}
button:hover, .btn:hover { background: var(--color-primary-700); }
button:active, .btn:active { transform: translateY(1px); }
button.secondary { background: var(--color-muted); box-shadow: var(--shadow-soft); }
button.secondary:hover { background: #4b5563; }
button.danger { background:#dc2626; }
button.danger:hover { background:#b91c1c; }

input[type="text"], input[type="password"], input[type="file"], select {
  border: 1px solid var(--color-border);
  background: var(--color-panel);
  color: var(--color-text);
  border-radius: 10px;
}
input:focus, select:focus { outline: 2px solid rgba(0,166,173,.25); border-color: var(--color-primary-600); }

table { background: var(--color-panel); }
thead th { position: sticky; top: 0; background: #f1f5f9; }
th, td { border-bottom: 1px solid var(--color-border); }
.icon { background:#e5f6f7; }
.icon::after { background:#00a6ad; }

a { color: var(--color-primary); }
a:hover { color: var(--color-primary-700); }

/* ---------- HEADER MODERNO (griglia) ---------- */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background:#111827; /* Manteniamo il colore attuale dell'header se era scuro nel tuo CSS */
  color:#fff;
}
.site-header .logo-wrap { display:flex; align-items:center; }
.site-header .logo img { height: 36px; width: auto; display:block; }
.site-header .app-title { margin: 0; text-align: center; font-size: 20px; letter-spacing: .2px; }
.site-header .top-nav { display:flex; align-items:center; justify-content:flex-end; gap:12px; }
.site-header .top-nav a { color:#fff; text-decoration:none; }
.user-pill { background: rgba(255,255,255,.1); padding:4px 8px; border-radius: 999px; }

/* ---------- LOGIN ---------- */
.logo-center { display:flex; justify-content:center; margin-top: 16px; margin-bottom: 8px; }
.logo-center img { height: 48px; width:auto; }
.auth-card { max-width: 420px; margin: 0 auto; }

/* ---------- ADMIN TOOLBAR & MODALS ---------- */
.toolbar { display:flex; justify-content:space-between; align-items:center; margin-bottom: 12px; }
.toolbar .left, .toolbar .right { display:flex; gap:8px; flex-wrap: wrap; }
.secondary { background:#6b7280; }
.secondary:hover { background:#4b5563; }
.fullwidth { width: 100%; }
.actions button { margin-right: 6px; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); display:flex; align-items:center; justify-content:center; z-index: 1000; }
.modal[hidden] { display:none; }
.modal-content { background:#fff; padding:16px; border-radius:12px; min-width: 320px; max-width: 90vw; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.modal-actions { display:flex; gap:8px; justify-content:flex-end; margin-top: 12px; }
.modal-content.modal-lg { width: min(1000px, 92vw); }
.modal-header { display:flex; justify-content:space-between; align-items:center; margin-bottom: 8px; }
.preview-body { overflow:auto; }

/* ---------- LOGIN PULITA (senza header) ---------- */
.login-page .site-header { display: none !important; }
.login-page main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
}
.login-page .logo-center { margin: 0 0 10px 0; }
.login-page .logo-center img { height: 52px; width: auto; }
.login-page .auth-card { width: 100%; max-width: 360px; margin: 0 auto; padding: 16px; }

/* Stile pulsante per Logout */
.site-header .top-nav .logout {
  background: #00a6ad;  /* colore sfondo del bottone */
  color: #fff;          /* colore testo */
  padding: 8px 12px;    /* spessore bottone */
  border-radius: 999px; /* forma “pill” arrotondata */
  text-decoration: none;
}
.site-header .top-nav .logout:hover {
  background: #007d84;  /* colore al passaggio del mouse */
}

/* ---------- EXTRA ---------- */
footer { text-align: center; padding: 16px; color: var(--color-muted); }
