body {
    font-family: 'Inter', sans-serif;
    background-color: #f1f5f9;
    color: #1e293b;
    margin: 0;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100dvh;
}

.menu {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 1400px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
    display: flex;
    flex-direction: row;
    min-height: 650px;
}

.menu-laterale {
    background-color: #0f172a;
    width: 260px;
    display: flex;
    flex-direction: column;
    padding: 24px 14px;
    gap: 8px;
    border-right: 1px solid #1e293b;
    flex-shrink: 0;
    border-bottom: none;
}

.menu-laterale .nav-link {
    color: #94a3b8;
    text-align: left;
    width: 100%;
    border-radius: 8px !important;
    padding: 12px 16px;
    border: none !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    background: transparent;
    font-size: 0.9rem;
}

.menu-laterale .nav-link i {
    font-size: 1.1rem;
}

.menu-laterale .nav-link:hover {
    color: #f8fafc;
    background-color: #1e293b;
}

.menu-laterale .nav-link.active {
    color: #ffffff !important;
    background-color: #3b82f6 !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.tab-content {
    flex-grow: 1;
    padding: 40px;
    background-color: #ffffff;
    overflow-y: auto;
}

.tab-pane p {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 24px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

td {
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.875rem;
    color: #334155;
    background-color: #ffffff;
    transition: background-color 0.15s ease;
}

tr:last-child td {
    border-bottom: none;
}

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

.pericolo-critico td {
    animation: pulse-danger 2s infinite ease-in-out;
    font-weight: 600;
    color: #991b1b;
    border-top: 1px solid rgba(239, 68, 68, 0.2) !important;
    border-bottom: 1px solid rgba(239, 68, 68, 0.2) !important;
}

.pericolo-critico td:first-child {
    border-left: 4px solid #ef4444 !important;
}

.pericolo-critico td:last-child {
    border-right: 1px solid rgba(239, 68, 68, 0.2) !important;
}

@keyframes pulse-danger {
    0% {
        background-color: rgba(239, 68, 68, 0.03);
    }

    50% {
        background-color: rgba(239, 68, 68, 0.15);
    }

    100% {
        background-color: rgba(239, 68, 68, 0.03);
    }
}

.btn-danger {
    padding: 10px 24px;
    font-weight: 500;
    border-radius: 8px;
}

.login-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 420px;
    border: 1px solid #e2e8f0;
    padding: 40px 30px;
    margin-top: 80px;
}

@media (max-width: 768px) {
    body {
        padding: 15px 10px;
    }

    .menu {
        flex-direction: column;
        min-height: auto;
    }

    .menu-laterale {
        width: 100%;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid #1e293b;
        overflow-x: auto;
        padding: 12px 16px;
        gap: 12px;
    }

    .menu-laterale .nav-link {
        width: auto;
        white-space: nowrap;
        padding: 10px 14px;
    }

    .tab-content {
        padding: 24px 16px;
    }
}