/* ==========================================================================
   VARIABILI GLOBALI E RESET
   ========================================================================== */
:root {
    --primary: #e67e22;      /* Arancione principale */
    --dark: #2c3e50;         /* Blu scuro professionale */
    --dark-bg: #0b0f13;      /* Nero profondo per i monitor KDS */
    --bg: #f4f7f6;           /* Grigio chiarissimo per le pagine admin */
    --sidebar-width: 260px;
    --gray-menu: #adb5bd;    /* Grigio argentato per le sezioni del menu */
    --success: #27ae60;
    --warning: #f1c40f;
    --danger: #e74c3c;
}

body {
    background-color: var(--bg);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    color: var(--dark);
}

/* ==========================================================================
   LAYOUT STRUTTURALE (SCOSTAMENTO CONTENUTO)
   ========================================================================== */
.main-content-shifted {
    transition: all 0.3s ease-in-out;
}

/* Su PC: Sposta il contenuto a destra per far spazio alla sidebar fissa */
@media (min-width: 992px) {
    .main-content-shifted {
        margin-left: var(--sidebar-width);
        padding: 40px;
    }
}

/* Su Mobile: Aggiunge spazio in alto per la navbar mobile fissa */
@media (max-width: 991px) {
    .main-content-shifted {
        padding: 90px 15px 30px 15px;
    }
}

/* ==========================================================================
   SIDEBAR E MENU LATERALE
   ========================================================================== */
.menu-section-header {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--gray-menu) !important; /* Colore unico per le testate richiesto */
    padding-left: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.sidebar-logo {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary);
    margin-bottom: 10px;
}

/* ==========================================================================
   CARD E DASHBOARD (Admin Menu, Dashboard, etc.)
   ========================================================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.card-custom {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-decoration: none !important;
    color: var(--dark);
    border-bottom: 6px solid var(--primary);
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
}

.card-custom:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    color: var(--primary);
}

/* ==========================================================================
   MONITOR REAL-TIME (CUCINA E BEVANDE)
   ========================================================================== */
.kds-body {
    background-color: var(--dark-bg);
    color: #fff;
}

/* Animazione Lampeggiante per ritardi */
@keyframes blink-alert {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.01); }
    100% { opacity: 1; transform: scale(1); }
}

.blink-active {
    animation: blink-alert 0.8s infinite;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    border: 2px solid white !important;
}

/* Card per i monitor Hostess/Cucina */
.card-kds {
    background: #1c242c;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 8px solid;
    transition: 0.3s;
}

.status-pronto { border-left-color: var(--primary); } /* Arancione per cucina */
.status-attesa { border-left-color: #3498db; }       /* Blu per bar */

.tavolo-label {
    font-size: 1.4rem;
    font-weight: 900;
}

.piatto-nome-kds {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
}

/* ==========================================================================
   TABELLE E CASSA
   ========================================================================== */
.table-custom-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
}

.total-banner {
    background: var(--primary);
    color: white;
    padding: 20px;
    border-radius: 12px;
    display: inline-block;
}

/* ==========================================================================
   UTILITY
   ========================================================================== */
.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom { background-color: var(--primary) !important; }
.rounded-15 { border-radius: 15px; }