.app-modal,
.announcement-overlay,
.download-confirm {
    position: fixed;
    z-index: 9999;
    inset: 0;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.app-modal.active,
.announcement-overlay.active,
.download-confirm.active {
    visibility: visible;
    opacity: 1;
}

.modal-content,
.announcement-modal,
.download-confirm-dialog {
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    transition: all 0.3s ease;
}

.modal-header,
.announcement-header,
.download-confirm-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.modal-title,
.announcement-title,
.download-confirm-title {
    margin: 0;
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-body,
.announcement-body,
.download-confirm-body {
    max-height: 60vh;
    padding: 1.5rem;
    overflow-y: auto;
    color: #475569;
    line-height: 1.6;
}

.modal-footer,
.announcement-footer,
.download-confirm-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    text-align: right;
}

.confirm-btn,
.announcement-close,
.download-confirm-submit {
    padding: 0.5rem 1.25rem;
    border: 0;
    border-radius: 8px;
    background-color: #3b82f6;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.confirm-btn:hover,
.announcement-close:hover,
.download-confirm-submit:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}
