.announcement-banner {
    position: sticky;
    top: 0;
    z-index: 40;
    background: white !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.dark .announcement-banner {
    background: #212529 !important; /* neutral-900 - matches body background */
    border-bottom-color: #495057 !important; /* neutral-700 */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    color: #f1f3f5 !important; /* neutral-50 - matches theme text */
}

.announcement-banner.announcement-above {
    top: 0;
}

.announcement-banner.announcement-below {
    top: 64px; /* Header height (sticky header) */
}

.announcement-content {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
}

.dark .announcement-content {
    color: #f1f3f5 !important; /* neutral-50 - matches theme text */
}

.announcement-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6 !important;
    border-radius: 6px;
}

.dark .announcement-icon {
    background: #495057 !important; /* neutral-700 */
}

.announcement-icon i {
    font-size: 18px;
    color: #6b7280 !important;
}

.dark .announcement-icon i {
    color: #ced4da !important; /* neutral-400 */
}

.announcement-text {
    flex: 1;
    min-width: 0;
    color: inherit;
}

.dark .announcement-text {
    color: #f1f3f5 !important; /* neutral-50 - matches theme text */
}

.announcement-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827 !important;
    margin: 0 0 2px 0;
}

.dark .announcement-title {
    color: #f1f3f5 !important; /* neutral-50 - matches theme text */
}

.announcement-description {
    font-size: 13px;
    color: #6b7280 !important;
    margin: 0;
}

.dark .announcement-description {
    color: #dee2e6 !important; /* neutral-300 */
}

.announcement-button {
    flex-shrink: 0;
}

.announcement-btn {
    display: inline-block;
    padding: 6px 16px;
    background: #2563eb !important;
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.dark .announcement-btn {
    background: #2d8f8f !important; /* primary-500 */
    color: white !important;
}

.announcement-btn:hover {
    background: #1d4ed8 !important;
}

.dark .announcement-btn:hover {
    background: #3ba3a3 !important; /* primary-400 */
}

.announcement-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none;
    cursor: pointer;
    color: #6b7280 !important;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.dark .announcement-close {
    color: #ced4da !important; /* neutral-400 */
    background: transparent !important;
}

.announcement-close:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
}

.dark .announcement-close:hover {
    background: #495057 !important; /* neutral-700 */
    color: #f1f3f5 !important; /* neutral-50 - matches theme text */
}

.announcement-close i {
    font-size: 18px;
    color: inherit !important;
}

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

@media (max-width: 640px) {
    .announcement-content {
        flex-wrap: wrap;
        flex-direction: row;
        align-items: flex-start;
        padding: 10px 0;
        gap: 8px;
    }
    
    .announcement-icon {
        width: 28px;
        height: 28px;
    }
    
    .announcement-title {
        font-size: 13px;
    }
    
    .announcement-description {
        font-size: 12px;
    }
    
    .announcement-text {
        flex-basis: 100%;
    }
    
    .announcement-button {
        flex-basis: 100%;
        margin-top: 6px;
    }
    
    .announcement-btn {
        width: 100%;
        text-align: center;
    }
    
    .announcement-close {
        position: absolute;
        top: 8px;
        right: 8px;
    }
}

