/* Alert Bar Styles */

.alert-bar {
    position: relative;
    width: 100%;
    background-color: #4A90E2;
    color: #FFFFFF;
    z-index: 9997;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert-bar.slide-down {
    transform: translateY(0);
}

.alert-bar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    max-width: 100%;
    margin: 0 auto;
    gap: 15px;
    position: relative;
}

.alert-bar-text {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    display: inline;
}

.alert-bar-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.alert-bar-close:hover {
    opacity: 0.7;
    transform: translateY(-50%) scale(1.1);
}

.alert-bar-content .btn {
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
    margin-left: 15px;
}

/* Sticky Header Support - Remove spacing when alert bar is present */
body.alert-bar-active .header {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.alert-bar {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .alert-bar-content {
        flex-wrap: wrap;
        padding: 10px 15px;
    }

    .alert-bar-text {
        width: 100%;
        margin-bottom: 8px;
        font-size: 13px;
    }

    .alert-bar-content .btn {
        width: 100%;
        text-align: center;
    }

    .alert-bar-close {
        position: absolute;
        top: 10px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .alert-bar-content {
        padding: 8px 12px;
    }

    .alert-bar-text {
        font-size: 12px;
        padding-right: 30px; /* Make room for close button */
    }
}
