/* System Status Banner Styles */

/* Status Dot Indicator */
.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.ok {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.status-dot.degraded {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.status-dot.down {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.status-dot.loading {
    background: #6b7280;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.2);
}

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

/* Service Pills */
.service-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: all 0.2s ease;
    cursor: default;
    border: 1.5px solid transparent;
}

.service-pill.operational {
    background: #d1fae5;
    color: #065f46;
    border-color: #6ee7b7;
}

.service-pill.down {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.service-pill.loading {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #d1d5db;
    animation: servicePulse 1.5s infinite;
}

@keyframes servicePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.service-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-abbr {
    white-space: nowrap;
}

/* Collapsible Services */
.services-collapsible {
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 1;
}

.services-collapsible.collapsed {
    max-height: 0;
    opacity: 0;
}

#toggle-services {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

#toggle-services:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

#toggle-icon.rotated {
    transform: rotate(180deg);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    #status-banner .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .service-pill {
        padding: 3px 6px;
        font-size: 10px;
    }
}
