/* Additional custom styles for the status page */

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

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

.pulse {
    animation: pulse 2s infinite;
}

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

.status-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

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

.status-card.online {
    border-left-color: #10b981;
}

.status-card.offline {
    border-left-color: #ef4444;
}

.status-card.degraded {
    border-left-color: #f59e0b;
}

.metric-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.metric-card:hover {
    transform: scale(1.05);
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

.uptime-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
}

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

.incident-item {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(90deg, #fef3c7, #fde68a);
    border-radius: 0 8px 8px 0;
    padding: 1rem;
    margin: 0.5rem 0;
    transition: all 0.2s ease;
}

.incident-item:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

@media (max-width: 768px) {
    .search-container {
        padding: 1rem;
    }
    
    .metric-card {
        margin-bottom: 1rem;
    }
}
