/* Enhanced Dashboard Styling */

/* Improve resource widget visibility */
.widget-resources {
    backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 8px;
    padding: 12px;
}

/* Docker container status indicators */
.widget-docker .container-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.widget-docker .container-status.running {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.widget-docker .container-status.stopped,
.widget-docker .container-status.exited {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.widget-docker .container-status.paused {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

/* Improve disk usage visualization */
.widget-resources .disk-usage {
    margin-top: 8px;
}

.widget-resources .disk-usage-bar {
    height: 8px;
    border-radius: 4px;
    background: rgba(148, 163, 184, 0.1);
    overflow: hidden;
    margin-top: 4px;
}

.widget-resources .disk-usage-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    transition: width 0.3s ease;
}

/* CPU and Memory bars */
.widget-resources .resource-bar {
    margin: 6px 0;
    height: 6px;
    border-radius: 3px;
    background: rgba(148, 163, 184, 0.1);
    overflow: hidden;
}

.widget-resources .resource-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    transition: width 0.3s ease;
}

/* Docker widget improvements */
.widget-docker {
    backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 8px;
    padding: 12px;
}

.widget-docker .container-item {
    padding: 8px;
    margin: 4px 0;
    border-radius: 6px;
    transition: background 0.2s;
}

.widget-docker .container-item:hover {
    background: rgba(148, 163, 184, 0.05);
}

/* Service card improvements */
.service-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive improvements */
@media (max-width: 768px) {
    #refresh-controls {
        top: 10px;
        right: 10px;
    }
    
    #manual-refresh-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Loading state */
.refreshing {
    opacity: 0.6;
    pointer-events: none;
}

/* Improve text readability */
.widget-label {
    font-weight: 600;
    color: rgba(226, 232, 240, 0.9);
}

.widget-value {
    color: rgba(226, 232, 240, 0.95);
    font-weight: 500;
}
