/* Стили для системного мониторинга */

/* Кнопка переключения системного статуса */
.btn-outline-info {
    transition: all 0.3s ease;
}

.btn-outline-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 123, 255, 0.2);
}

.btn-outline-info i {
    transition: transform 0.3s ease;
}

/* Анимация для секции системного статуса */
.system-status-section {
    margin-bottom: 2rem;
}

.system-status-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.system-status-card h5 {
    margin-bottom: 1rem;
    color: #495057;
    font-weight: 600;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.status-item:last-child {
    border-bottom: none;
}

.status-label {
    font-weight: 500;
    color: #6c757d;
}

.status-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-running, .status-connected, .status-normal {
    background-color: #d1edff;
    color: #0c63e4;
}

.status-warning {
    background-color: #fff3cd;
    color: #856404;
}

.status-error, .status-stopped, .status-critical {
    background-color: #f8d7da;
    color: #721c24;
}

.status-icon {
    width: 1rem;
    height: 1rem;
}

.progress-bar-custom {
    height: 0.5rem;
    border-radius: 0.25rem;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.progress-normal {
    background-color: #28a745;
}

.progress-warning {
    background-color: #ffc107;
}

.progress-critical {
    background-color: #dc3545;
}

.system-metric {
    background: #f8f9fa;
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 0.5rem 0;
    height: 100%;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.metric-title {
    font-weight: 600;
    color: #495057;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.text-normal {
    color: #28a745;
}

.text-warning {
    color: #ffc107;
}

.text-critical {
    color: #dc3545;
}

.refresh-button {
    transition: transform 0.2s ease;
}

.refresh-button:hover {
    transform: rotate(90deg);
}

.last-updated {
    font-size: 0.875rem;
    color: #6c757d;
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

/* Новые стили для улучшенных карточек */
.resource-item {
    padding: 0.5rem 0;
}

.resource-item .fw-medium {
    font-size: 0.875rem;
    color: #495057;
}

.bg-normal-subtle {
    background-color: rgba(40, 167, 69, 0.1);
}

.text-normal {
    color: #28a745;
}

.bg-warning-subtle {
    background-color: rgba(255, 193, 7, 0.1);
}

.bg-critical-subtle {
    background-color: rgba(220, 53, 69, 0.1);
}

.text-critical {
    color: #dc3545;
}

/* Стили для статистических карточек */
.system-metric .h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.system-metric .bg-light {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.system-metric .bg-light:hover {
    background-color: #e9ecef !important;
    transform: translateY(-1px);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Адаптивность */
@media (max-width: 768px) {
    .system-status-card {
        padding: 0.75rem;
    }
    
    .status-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .status-value {
        align-self: flex-end;
    }
    
    .system-metric {
        margin: 0.25rem 0;
    }
    
    .metric-title {
        font-size: 0.9rem;
    }
}