/* WP Control Center - Stile principale */

:root {
    --wpc-primary: #0d6efd;
    --wpc-sidebar-bg: #1a1d23;
    --wpc-body-bg: #f0f2f5;
}

body {
    background-color: var(--wpc-body-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Sidebar */
#sidebar {
    background-color: var(--wpc-sidebar-bg) !important;
    transition: margin-left 0.3s ease;
}

#sidebar .nav-link {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
}

#sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#sidebar .nav-link.active {
    font-weight: 600;
}

/* Cards */
.stat-card {
    border: none;
    border-radius: 0.75rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tables */
.table-wpc {
    font-size: 0.9rem;
}

.table-wpc th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #6c757d;
    border-bottom-width: 2px;
}

/* Status badges */
.badge-status-active {
    background-color: #198754;
}

.badge-status-locked {
    background-color: #dc3545;
}

.badge-status-restricted {
    background-color: #fd7e14;
}

.badge-status-offline {
    background-color: #6c757d;
}

.badge-status-pending {
    background-color: #0dcaf0;
    color: #000;
}

/* Severity badges */
.badge-severity-low {
    background-color: #0dcaf0;
    color: #000;
}

.badge-severity-medium {
    background-color: #ffc107;
    color: #000;
}

.badge-severity-high {
    background-color: #fd7e14;
}

.badge-severity-critical {
    background-color: #dc3545;
}

/* Login page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1d23 0%, #2d3748 100%);
}

.login-card {
    max-width: 420px;
    width: 100%;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.login-card .card-body {
    padding: 2.5rem;
}

.login-logo {
    font-size: 2.5rem;
    color: var(--wpc-primary);
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }

    #sidebar.show {
        margin-left: 0;
    }

    .stat-card .stat-value {
        font-size: 1.4rem;
    }
}

/* Alert feed */
.alert-feed-item {
    padding: 0.75rem 1rem;
    border-left: 3px solid transparent;
    transition: background-color 0.15s ease;
}

.alert-feed-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.alert-feed-item.severity-critical {
    border-left-color: #dc3545;
}

.alert-feed-item.severity-high {
    border-left-color: #fd7e14;
}

.alert-feed-item.severity-medium {
    border-left-color: #ffc107;
}

.alert-feed-item.severity-low {
    border-left-color: #0dcaf0;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Scrollbar personalizzata */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}
