/* ============================================================
   System Message Banner Component
   Top banner for urgent/info system-wide messages.
   Sits in normal document flow, pushes content down.
   Uses own colors, no design system dependency.
   ============================================================ */

/* Wrapper handles the height collapse on dismiss */
.system-banner-wrapper {
    overflow: hidden;
    margin: 0;
    padding: 0;
    transition: max-height 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.system-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 12px 24px;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 1;
    transition: opacity 200ms ease;
}

.system-banner--urgent {
    background: #D32F2F;
}

.system-banner--info {
    background: #1976D2;
}

/* Fade out step (applied via JS) */
.system-banner--fading {
    opacity: 0;
}

/* Icon */
.system-banner__icon {
    font-size: 22px;
    flex-shrink: 0;
    opacity: 0.95;
}

/* Text area */
.system-banner__text {
    flex: 1;
    min-width: 0;
    text-align: center;
}

/* Optional CTA link */
.system-banner__link {
    color: #fff;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
    margin-left: 4px;
}

.system-banner__link:hover {
    opacity: 0.85;
}

/* Close / dismiss button */
.system-banner__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    margin: 0;
    padding: 0;
    transition: background 150ms ease;
}

.system-banner__close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.system-banner__close .material-icons {
    font-size: 20px;
}

/* ---- Responsive ---- */

@media (max-width: 767px) {
    .system-banner {
        padding: 10px 16px;
        font-size: 12px;
        gap: 8px;
    }

    .system-banner__icon {
        font-size: 20px;
    }

    .system-banner__close {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 400px) {
    .system-banner {
        padding: 8px 12px;
        gap: 6px;
    }
}
