/* Banner Styles */
.banner-container {
    width: 100%;
}

.banner {
    position: relative;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.banner-info {
    background-color: #dbeafe;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

.banner-success {
    background-color: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.banner-warning {
    background-color: #fed7aa;
    border: 1px solid #fdba74;
    color: #92400e;
}

.banner-announcement {
    background-color: #e9d5ff;
    border: 1px solid #c084fc;
    color: #6b21a8;
}

.banner-content-link {
    text-decoration: none;
    color: inherit;
}

.banner-content-link:hover {
    opacity: 0.9;
}

.banner-image {
    max-height: 200px;
    max-width: 300px;
    width: auto;
    height: auto;
    border-radius: 0.375rem;
    object-fit: contain;
}

.banner-text {
    min-width: 0;
}

.banner-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.banner-message {
    font-size: 0.875rem;
    line-height: 1.5;
}

.banner-close {
    flex-shrink: 0;
    background-color: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0.5rem;
}

.banner-close:hover {
    opacity: 1;
}

.banner-dismissible.banner-hidden {
    display: none;
}

/* Hide banner areas until JS has applied dismissed state (prevents flash on hx-boost) */
#topBannersContainer[data-checked="false"],
#middleBannerOverlay[data-checked="false"],
#middleBannersContainer[data-checked="false"],
#bottomBannersContainer[data-checked="false"] {
    visibility: hidden;
}

@media (max-width: 640px) {
    .banner-image {
        max-height: 120px;
        max-width: 150px;
    }
    
    .banner-title {
        font-size: 1rem;
    }
    
    .banner-message {
        font-size: 0.8125rem;
    }
} 