/* System Status Widget Styles (Mimics Template Customizer) */
#status-widget {
    font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    width: 400px;
    background: #fff;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2);
    transform: translateX(100%); /* Hidden by default */
    transition: transform 0.3s ease-in-out;
}

#status-widget.open {
    transform: translateX(0);
}

/* Toggle Button */
.status-widget-toggle {
    position: absolute;
    top: 50%;
    left: -42px; /* Width of button */
    width: 42px;
    height: 42px;
    background: #5a8dee; /* Primary Color */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    cursor: pointer;
    box-shadow: -5px 0 10px rgba(0,0,0,0.1);
}

.status-widget-toggle i {
    font-size: 20px;
    animation: spin 10s linear infinite;
}

/* Header */
.status-widget-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e7e7e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fdfdfd;
}

.status-widget-header h5 {
    margin: 0;
    font-weight: 600;
    color: #516377;
}

.status-widget-close {
    cursor: pointer;
    color: #a8b1bb;
    font-size: 1.25rem;
    transition: color 0.2s;
}

.status-widget-close:hover {
    color: #ff5b5c;
}

/* Content */
.status-widget-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
}

/* Stat Item */
.stat-item {
    margin-bottom: 2rem;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #677788;
}

.progress {
    height: 8px;
    background-color: #f2f2f6;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* Colors matching theme */
.bg-primary { background-color: #5a8dee !important; }
.bg-success { background-color: #39da8a !important; }
.bg-warning { background-color: #fdac41 !important; }
.bg-info { background-color: #00cfdd !important; }
.bg-danger { background-color: #ff5b5c !important; }

@keyframes spin {
    100% { transform: rotate(360deg); }
}
