.announcements-toast-container {
    position: fixed;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    width: 100%;
    pointer-events: none;
}

.announcements-toast-container.right {
    right: 20px;
}

.announcements-toast-container.left {
    left: 20px;
}

.announcement-toast {
    padding: 16px 20px;
    border-radius: 8px;
    
    background-color: var(--secondary-color) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-light) !important;
    
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    pointer-events: auto;
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

body.light-theme .announcement-toast {
    background-color: var(--light-card-bg) !important;
    border-color: var(--light-border) !important;
    color: var(--light-text) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.announcement-toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--orange-color);
}

.announcement-toast-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 6px;
    padding-right: 24px;
    color: var(--orange-color) !important;
    line-height: 1.3;
}

.announcement-toast-content {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted) !important;
}

body.light-theme .announcement-toast-content {
    color: var(--light-muted) !important;
}

.announcement-toast-content a {
    color: var(--orange-color) !important;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
    border-bottom: 1px solid transparent;
}

.announcement-toast-content a:hover {
    border-bottom-color: var(--orange-color);
}

.announcement-toast-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s;
    padding: 4px;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: var(--text-muted) !important;
}

body.light-theme .announcement-toast-close {
    color: var(--light-muted) !important;
}

.announcement-toast-close:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

body.light-theme .announcement-toast-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
}


.announcement-banner-top {
    width: 100%;
    padding: 12px 20px;
    text-align: center;
    position: relative;
    z-index: 9998;
    animation: slideDown 0.3s ease-out;
    
    background-color: var(--orange-color) !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.announcement-banner-top.closing {
    animation: slideUp 0.2s ease-in forwards;
}

.announcement-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.announcement-banner-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.announcement-banner-title {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 2px 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    white-space: nowrap;
}

.announcement-banner-message {
    font-size: 14px;
    font-weight: 500;
}

.announcement-banner-message a {
    color: inherit !important;
    text-decoration: underline;
    font-weight: 700;
    transition: opacity 0.2s;
}

.announcement-banner-message a:hover {
    opacity: 0.8;
}

.announcement-banner-close {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    color: #ffffff !important;
    transition: all 0.2s;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.announcement-banner-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.announcements-toast-container.right .announcement-toast {
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.announcements-toast-container.left .announcement-toast {
    animation: slideInLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.announcement-toast.closing {
    animation: fadeOut 0.2s ease-in forwards;
}

@media (max-width: 576px) {
    .announcements-toast-container {
        left: 15px !important;
        right: 15px !important;
        bottom: 15px;
        max-width: none;
        width: auto;
    }
    
    .announcement-toast {
        width: 100%;
    }
    
    .announcement-banner-content {
        gap: 10px;
        flex-direction: row;
        align-items: flex-start;
    }
    
    .announcement-banner-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .announcement-banner-close {
        margin-top: 0;
    }
}

