/* Announcement Modal Styles */

.announcements-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    pointer-events: none;
}

.announcements-container.active {
    pointer-events: auto;
}

.announcement-modal {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: auto;
    animation: slideIn 0.3s ease-out;
    opacity: 0;
    transform: scale(0.9);
}

.announcements-container.active .announcement-modal {
    opacity: 1;
    transform: scale(1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.announcement-modal.hidden {
    display: none;
}

.announcement-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.announcement-close-btn:hover {
    color: #000;
    transform: scale(1.2);
}

.announcement-content {
    padding: 40px 30px 30px 30px;
}

.announcement-title {
    margin: 0 0 15px 0;
    padding-right: 30px;
}

.announcement-body {
    margin: 0 0 20px 0;
    line-height: 1.6;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.announcement-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.announcement-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.announcement-btn-close {
    background-color: #f44336;
    color: white;
}

.announcement-btn-close:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

/* Loading spinner */
.announcement-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1976d2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 600px) {
    .announcement-modal {
        width: 95%;
        max-height: 90vh;
    }

    .announcement-content {
        padding: 30px 20px 20px 20px;
    }

    .announcement-close-btn {
        top: 10px;
        right: 10px;
    }

    .announcement-title {
        padding-right: 20px;
    }

    .announcement-footer {
        flex-direction: column;
    }

    .announcement-btn {
        width: 100%;
    }
}
