/* Notification Container */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
    /* Ensure it's on top of everything */
    pointer-events: none;
    /* Allow clicks to pass through container */
}

/* Individual Notification Toast */
.notification-toast {
    position: relative;
    width: 320px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.65);
    /* Glassmorphism base */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    cursor: pointer;
    pointer-events: auto;
    /* Enable clicks on the toast itself */

    /* Animation Initial State */
    opacity: 0;
    transform: translateX(50px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notification-toast.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.notification-toast.hide {
    opacity: 0;
    transform: translateX(50px) scale(0.9);
}

/* Notification Types - Accents */
.notification-toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: #ccc;
    /* Default */
}

.notification-toast.success::before {
    background: linear-gradient(180deg, #ffc200, #ff8f00);
}

.notification-toast.error::before {
    background: linear-gradient(180deg, #F44336, #FF5252);
}

.notification-toast.warning::before {
    background: linear-gradient(180deg, #FF9800, #FFC107);
}

.notification-toast.info::before {
    background: linear-gradient(180deg, #2196F3, #03A9F4);
}

/* Content Layout */
.notification-content {
    display: flex;
    align-items: flex-start;
    padding-left: 10px;
}

.notification-icon {
    margin-right: 12px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-message {
    flex: 1;
    font-weight: 500;
}

/* Progress Bar */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 6px;
    /* Align with content after border */
    width: calc(100% - 6px);
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
}

.notification-progress-bar {
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    width: 100%;
    transform-origin: left;
    /* Animation duration is set via JS */
}

/* Dark Mode Support (if app has it, or just for looks) */
@media (prefers-color-scheme: dark) {
    .notification-toast {
        background: rgba(30, 30, 30, 0.75);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #f1f1f1;
    }

    .notification-progress {
        background: rgba(255, 255, 255, 0.1);
    }

    .notification-progress-bar {
        background: rgba(255, 255, 255, 0.3);
    }
}

/* Announcement Modal Styles */
.announcement-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Dim background */
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.announcement-overlay.show {
    opacity: 1;
}

.announcement-modal {
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Segoe UI', sans-serif;
    overflow: hidden;
}

.announcement-overlay.show .announcement-modal {
    transform: scale(1);
}

.announcement-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.announcement-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.announcement-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

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

.announcement-body {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.announcement-item {
    background: rgba(255, 255, 255, 0.5);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.announcement-item:last-child {
    margin-bottom: 0;
}

.announcement-date {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 4px;
}

.announcement-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
    font-size: 1rem;
}

.announcement-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

/* Badge for the icon */
.notification-badge-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    background: #FF5252;
    border-radius: 50%;
    border: 2px solid white;
}