/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Navbar */
.navbar-brand {
    font-weight: bold;
}

/* Cards */
.card {
    border-radius: 10px;
    border: none;
    margin-bottom: 20px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

/* GPU Cards */
.gpu-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 10px;
    border: none;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gpu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.gpu-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #212529;
}

.gpu-metric {
    margin-bottom: 0.8rem;
}

.gpu-metric-label {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gpu-metric-value {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Progress Bars */
.progress {
    height: 0.6rem;
    border-radius: 0.3rem;
    background-color: #e9ecef;
}

/* Buttons */
.btn {
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

/* Tables */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    border-top: none;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

/* Charts */
.chart-container {
    position: relative;
    height: 200px;
    margin-bottom: 1rem;
}

/* Refresh Indicator */
.refresh-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: none;
    z-index: 1000;
}

.refresh-indicator.active {
    display: block;
}

/* Spin Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .gpu-card {
        margin-bottom: 15px;
    }

    .chart-container {
        height: 150px;
    }
}

/* Status Colors */
.status-good {
    color: #28a745;
}

.status-warning {
    color: #ffc107;
}

.status-critical {
    color: #dc3545;
}

/* Form Styles */
.form-control {
    border-radius: 5px;
}

.input-group-text {
    border-radius: 5px 0 0 5px;
}

/* Footer */
footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Alerts */
.alert {
    border-radius: 5px;
    border: none;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Process Table */
.process-table {
    font-size: 0.9rem;
}

/* Dashboard Header */
.dashboard-header {
    margin-bottom: 1.5rem;
}

/* Metric Cards */
.metric-card {
    border-radius: 10px;
    border: none;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.metric-icon {
    font-size: 2rem;
    opacity: 0.7;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: bold;
}

.metric-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
