/* Outage Banner Styles */

.outage-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 12px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideDown 0.3s ease-out;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.outage-banner.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.outage-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.outage-banner-content svg {
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

.outage-banner-content span {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Adjust app-container when banner is visible */
body:has(.outage-banner:not(.hidden)) .app-container {
    padding-top: 48px;
}

/* When both offline and outage banners are visible */
body:has(.offline-banner:not(.hidden)):has(.outage-banner:not(.hidden)) .app-container {
    padding-top: 96px;
}

body:has(.offline-banner:not(.hidden)):has(.outage-banner:not(.hidden)) .outage-banner {
    top: 48px;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

/* Mobile adjustments */
@media (max-width: 1079px) {
    .outage-banner {
        padding: 10px 16px;
    }

    .outage-banner-content {
        font-size: 13px;
    }

    .outage-banner-content svg {
        width: 18px;
        height: 18px;
    }

    body:has(.outage-banner:not(.hidden)) .app-container {
        padding-top: 44px;
    }

    body:has(.offline-banner:not(.hidden)):has(.outage-banner:not(.hidden)) .app-container {
        padding-top: 88px;
    }

    body:has(.offline-banner:not(.hidden)):has(.outage-banner:not(.hidden)) .outage-banner {
        top: 44px;
    }
}
