/* style.css - Dashboard styling */

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    height: 100vh;
    overflow: hidden; /* Prevent scrolling */
    margin: 0;
    padding: 0;
}

/* TV/Desktop Layout - No Scroll */
.tv-layout {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.tv-header {
    flex-shrink: 0;
    height: 60px;
}

.tv-content {
    flex: 1;
    overflow: hidden;
    padding: 10px;
}

.tv-row {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tv-summary {
    flex-shrink: 0;
    height: 80px;
    margin-bottom: 10px;
}

.tv-services {
    flex: 1;
    overflow: hidden;
}

.tv-grid {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 8px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Compact service cards for TV */
.service-card-tv {
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    border-left: 4px solid #dee2e6;
    height: fit-content;
    max-height: 120px;
    cursor: pointer;
}

.service-card-tv:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background: linear-gradient(45deg, #ffffff, #f8f9fa);
}

.service-info-tv {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.service-name-tv {
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.2;
}

.service-metrics-tv {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    margin-top: 4px;
}

/* Custom Card Styles */
.card {
    border: none;
    border-radius: 15px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

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

.card-header {
    border-radius: 15px 15px 0 0 !important;
    border-bottom: none;
    font-weight: 600;
}

/* Service Status Cards */
.service-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #dee2e6;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    background: linear-gradient(45deg, #ffffff, #f8f9fa);
}

.service-details-hint {
    text-align: center;
    margin-top: 8px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-details-hint {
    opacity: 1;
}

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

.service-card.status-online {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #ffffff 0%, #f8fff9 100%);
}

.service-card.status-slow {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #ffffff 0%, #fffdf5 100%);
}

.service-card.status-down {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

.service-card.status-error {
    border-left-color: #6f42c1;
    background: linear-gradient(135deg, #ffffff 0%, #f8f7ff 100%);
}

/* Status Badges */
.status-badge {
    font-size: 0.875rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-online {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-slow {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-down {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-error {
    background-color: #e2e3f0;
    color: #383d41;
    border: 1px solid #d1d1e0;
}

/* Critical Service Indicator */
.critical-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Response Time Indicators */
.response-time {
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.response-time.fast {
    background-color: #d4edda;
    color: #155724;
}

.response-time.medium {
    background-color: #fff3cd;
    color: #856404;
}

.response-time.slow {
    background-color: #f8d7da;
    color: #721c24;
}

/* Navigation Tabs */
.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 10px 10px 0 0;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.nav-tabs .nav-link.active {
    background-color: #007bff;
    color: white;
    border: none;
}

/* Charts */
#statusChart {
    max-width: 200px;
    max-height: 200px;
}

/* Service Chart Containers */
.service-chart-container {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    height: 120px;
    position: relative;
}

.service-chart-container canvas {
    max-height: 100px;
}

.service-chart-tv {
    height: 80px;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 5px;
}

.service-chart-tv canvas {
    max-height: 70px;
}

/* Service Detail Modal */
.modal-header {
    border-bottom: 1px solid #dee2e6;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.service-details-content {
    padding: 20px;
}

.detail-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.detail-section h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 10px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

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

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

.detail-value {
    font-weight: 600;
    color: #212529;
}

.provider-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.provider-aws {
    background-color: #ff9900;
    color: white;
}

.provider-gcp {
    background-color: #4285f4;
    color: white;
}

.provider-alibaba {
    background-color: #ff6a00;
    color: white;
}

.provider-digital-ocean {
    background-color: #0080ff;
    color: white;
}

.provider-unknown {
    background-color: #6c757d;
    color: white;
}

.detailed-chart-container {
    height: 300px;
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

/* Responsive detailed modal chart */
.detailed-chart {
    width: 100% !important;
    max-height: 260px;
}

.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
    font-style: italic;
}

/* Service Detail Section Styling */
.service-detail-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.service-detail-section h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.service-detail-section .table {
    margin-bottom: 0;
    background: white;
    border-radius: 6px;
}

.service-detail-section .table td {
    border: none;
    padding: 8px 12px;
    vertical-align: middle;
}

.service-detail-section .table tr:not(:last-child) td {
    border-bottom: 1px solid #f1f3f4;
}

/* TV Layout Responsive Design */
@media (min-width: 1200px) {
    .tv-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1600px) {
    .tv-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1920px) {
    .tv-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* 4K TV optimization */
@media (min-width: 2560px) {
    .tv-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .service-card-tv {
        padding: 12px;
        max-height: 140px;
    }
    
    .service-name-tv {
        font-size: 1rem;
    }
    
    .summary-value-tv {
        font-size: 1.8rem;
    }
}

/* Auto-fit for any screen size */
@media (min-width: 1000px) {
    .tv-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Compact summary cards for TV */
.summary-card-tv {
    background: white;
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.summary-value-tv {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.summary-label-tv {
    font-size: 0.7rem;
    color: #6c757d;
    margin: 2px 0 0 0;
    text-transform: uppercase;
    font-weight: 500;
}

/* Scrollbar styling for TV */
.tv-grid::-webkit-scrollbar {
    width: 6px;
}

.tv-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.tv-grid::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.tv-grid::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Status indicators for TV layout */
.status-indicator-tv {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    display: inline-block;
    flex-shrink: 0;
}

.status-indicator-tv.online {
    background-color: #28a745;
    box-shadow: 0 0 4px rgba(40, 167, 69, 0.5);
}

.status-indicator-tv.slow {
    background-color: #ffc107;
    box-shadow: 0 0 4px rgba(255, 193, 7, 0.5);
}

.status-indicator-tv.down {
    background-color: #dc3545;
    box-shadow: 0 0 4px rgba(220, 53, 69, 0.5);
}

.status-indicator-tv.error {
    background-color: #6f42c1;
    box-shadow: 0 0 4px rgba(111, 66, 193, 0.5);
}

/* TV Layout service card status styling */
.service-card-tv.status-online {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #ffffff 0%, #f8fff9 100%);
}

.service-card-tv.status-slow {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #ffffff 0%, #fffdf5 100%);
}

.service-card-tv.status-down {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

.service-card-tv.status-error {
    border-left-color: #6f42c1;
    background: linear-gradient(135deg, #ffffff 0%, #f8f7ff 100%);
}

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

/* Clock styling - LARGER & MORE VISIBLE */
#realtimeClock {
    text-align: center;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 10px 16px;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(15px);
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#clockTime {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
    letter-spacing: 1px;
    font-family: 'Courier New', 'Monaco', 'Lucida Console', monospace;
}

#clockDate {
    font-size: 0.8rem;
    color: #f8f9fa;
    margin-top: -2px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    font-weight: 500;
}

/* Countdown timer styling - LARGER & MORE PROMINENT */
#countdownTimer {
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 1rem;
    border: 2px solid rgba(255,193,7,0.5);
    animation: pulse-soft 3s infinite;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    min-width: 200px;
    text-align: center;
}

#countdownTimer.text-danger {
    border-color: rgba(220,53,69,0.7);
    background: rgba(220,53,69,0.2);
    animation: pulse-urgent 1s infinite;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

#countdownTimer.text-warning {
    border-color: rgba(255,193,7,0.7);
    background: rgba(255,193,7,0.2);
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

#countdownTimer.text-info {
    border-color: rgba(13,202,240,0.7);
    background: rgba(13,202,240,0.2);
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

#countdownTimer.text-success {
    border-color: rgba(25,135,84,0.7);
    background: rgba(25,135,84,0.2);
    animation: pulse-complete 2s infinite;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Countdown text specific styling */
#countdownText {
    font-family: 'Courier New', 'Monaco', 'Lucida Console', monospace;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes pulse-urgent {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.02); }
}

@keyframes pulse-complete {
    0%, 100% { opacity: 1; }
    25% { opacity: 0.7; }
    75% { opacity: 1; }
}

/* Mini chart styling */
#miniChart {
    border-radius: 4px;
}

/* Enhanced dropdown styling - TV OPTIMIZED */
.dropdown-menu {
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    border-radius: 12px;
    backdrop-filter: blur(15px);
    background: rgba(33, 37, 41, 0.98);
    z-index: 9999 !important;
    margin-top: 8px;
    min-width: 280px;
    transform: translateZ(0);
}

.dropdown-menu .dropdown-header {
    font-weight: 700;
    color: #ffffff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 12px 20px 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.dropdown-item {
    padding: 12px 20px;
    font-size: 1rem;
    transition: all 0.2s ease;
    color: #ffffff !important;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: rgba(13, 110, 253, 0.3) !important;
    color: #ffffff !important;
    transform: translateX(2px);
}

.dropdown-item i {
    width: 16px;
    margin-right: 8px;
    text-align: center;
}

.dropdown-divider {
    margin: 4px 0;
    opacity: 0.3;
}

/* Ensure dropdown appears above everything */
.navbar .dropdown-menu {
    position: absolute !important;
    z-index: 1060 !important;
}

/* Button styling improvements - TV OPTIMIZED */
.btn-outline-light {
    border-color: rgba(255,255,255,0.5);
    color: #ffffff;
    transition: all 0.2s ease;
    font-size: 1rem;
    padding: 10px 16px;
    border-width: 2px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    background: rgba(0,0,0,0.2);
}

.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.2) !important;
    border-color: rgba(255,255,255,0.7) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-outline-light:focus,
.btn-outline-light:active {
    background-color: rgba(255,255,255,0.3) !important;
    border-color: rgba(255,255,255,0.8) !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.2) !important;
}

.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Header spacing improvements */
.navbar-brand {
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Last update text styling */
#lastUpdate {
    color: #e9ecef !important;
    font-weight: 500;
}

/* Modal improvements for better contrast */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.modal-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

.modal-header .modal-title {
    font-weight: 600;
}

.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem 2rem;
}

/* Form improvements */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 8px;
    border: 1.5px solid #ced4da;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.form-check-label {
    font-weight: 500;
    color: #495057;
}

.btn-group .btn {
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
}

/* Quick set buttons styling */
.btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    transform: translateY(-1px);
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    transform: translateY(-1px);
}

/* Responsive Design for smaller screens */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }
    
    .tv-layout {
        height: auto;
    }
    
    .tv-content {
        overflow: visible;
        padding: 5px;
    }
    
    .tv-grid {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }
    
    .service-card {
        margin-bottom: 8px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .nav-tabs .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    /* Mobile header adjustments */
    .navbar-brand {
        font-size: 1rem;
    }
    
    #realtimeClock {
        font-size: 0.75rem;
        padding: 3px 6px;
        min-width: 80px;
    }
    
    #clockTime {
        font-size: 0.8rem;
    }
    
    #clockDate {
        font-size: 0.6rem;
    }
    
    #countdownTimer {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .dropdown-menu {
        min-width: 180px;
        font-size: 0.8rem;
    }
}

/* Large screen optimizations */
@media (min-width: 1400px) {
    #realtimeClock {
        font-size: 1rem;
        padding: 8px 16px;
    }
    
    #clockTime {
        font-size: 1.1rem;
    }
    
    #clockDate {
        font-size: 0.75rem;
    }
    
    #countdownTimer {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Status Icons */
.status-icon {
    font-size: 1.2rem;
    margin-right: 8px;
}

.status-icon.online {
    color: #28a745;
}

.status-icon.slow {
    color: #ffc107;
}

.status-icon.down {
    color: #dc3545;
}

.status-icon.error {
    color: #6f42c1;
}

/* Service Info */
.service-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.service-name {
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    font-size: 1rem;
}

.service-type {
    background: #e9ecef;
    color: #495057;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 500;
    margin-left: 8px;
}

.service-description {
    color: #6c757d;
    font-size: 0.875rem;
    margin: 4px 0;
}

.service-url {
    color: #007bff;
    font-size: 0.8rem;
    text-decoration: none;
    word-break: break-all;
}

.service-url:hover {
    text-decoration: underline;
}

.service-metrics {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
}

.service-timestamp {
    color: #6c757d;
    font-size: 0.75rem;
}

/* Toast Notifications */
.toast {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toast-success {
    background-color: #d4edda;
    color: #155724;
}

.toast-error {
    background-color: #f8d7da;
    color: #721c24;
}

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

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Summary Cards */
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.summary-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.summary-value {
    font-weight: 600;
    color: #2c3e50;
}

/* Health Percentage */
.health-percentage {
    font-size: 2rem;
    font-weight: 700;
    margin: 10px 0;
}

.health-excellent {
    color: #28a745;
}

.health-good {
    color: #28a745;
}

.health-warning {
    color: #ffc107;
}

.health-critical {
    color: #dc3545;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        color: #ecf0f1;
    }
    
    .card {
        background-color: #34495e;
        color: #ecf0f1;
    }
    
    .service-card {
        background-color: #34495e;
        color: #ecf0f1;
    }
}