/* 
   ============================================================
   NETWATCH PRO - DESIGN SYSTEM GLOBALE
   Versione 3.0 (Enterprise Look)
   ============================================================ 
*/

/* 1. Reset e Tipografia */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8f9fc;
    color: #334155;
    line-height: 1.5;
    display: flex;
}

/* 2. Layout Principale */
.main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
    padding: 30px;
    min-height: 100vh;
}

/* 3. Card e Contenitori */
.card, .section-box, .form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

/* 4. Griglia Statistiche */
.card-grid, .card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card-stat h3 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.card-stat p {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
}

/* 5. Tabelle Moderne */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

th {
    background-color: #f1f5f9;
    color: #475569;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
}

td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    color: #1e293b;
}

tr:hover td {
    background-color: #f8fafc;
}

/* 6. Pulsanti e Azioni */
.btn, .btn-primary, .btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    gap: 8px;
}

.btn-primary { background-color: #3498db; color: white; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.btn-primary:hover { background-color: #2980b9; transform: translateY(-1px); }

.btn-success { background-color: #10b981; color: white; }
.btn-danger { background-color: #ef4444; color: white; }

/* 7. Badge di Stato */
.status-badge {
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.online { background-color: #d1fae5; color: #065f46; }
.offline { background-color: #fee2e2; color: #991b1b; }

/* 8. Responsive */
@media screen and (max-width: 768px) {
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 15px;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
}
.sidebar-layout { display: flex; position: fixed; top: 60px; left: 0; height: calc(100vh - 60px); z-index: 100; }
.sidebar-primary { width: 70px; background: #1a252f; display: flex; flex-direction: column; align-items: center; padding-top: 20px; }
.sidebar-primary ul { list-style: none; padding: 0; }
.sidebar-primary li { margin-bottom: 25px; font-size: 24px; opacity: 0.6; transition: 0.3s; }
.sidebar-primary li.active { opacity: 1; border-left: 3px solid #3498db; padding-left: 10px; }
.sidebar-secondary { width: 200px; background: #2c3e50; border-left: 1px solid rgba(255,255,255,0.05); padding: 20px 10px; }
.main-content { margin-left: 270px; } /* 70px + 200px */