/* --- Alert Overlay & Uiverse.io Card --- */
.alert-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    animation: alertOverlayIn 0.2s ease forwards;
}

.alert-overlay.alert-removing {
    animation: alertOverlayOut 0.3s ease forwards;
}

@keyframes alertOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes alertOverlayOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.alert-uiverse-card {
    overflow: hidden;
    position: relative;
    background-color: #ffffff;
    text-align: left;
    border-radius: 0.5rem;
    max-width: 290px;
    width: calc(100vw - 2rem);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: alertCardIn 0.35s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
}

.alert-overlay.alert-removing .alert-uiverse-card {
    animation: alertCardOut 0.3s ease-in forwards;
}

@keyframes alertCardIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes alertCardOut {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(0.85); opacity: 0; }
}

.alert-uiverse-header {
    padding: 1.25rem 1rem 1rem 1rem;
    background-color: #ffffff;
}

.alert-uiverse-image {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
}

.alert-uiverse-image svg {
    width: 1.5rem;
    height: 1.5rem;
}

.alert-uiverse-content {
    margin-top: 0.75rem;
    text-align: center;
}

.alert-uiverse-title {
    color: #111827;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5rem;
}

.alert-uiverse-message {
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.alert-uiverse-actions {
    margin: 0.75rem 1rem;
    background-color: #f9fafb;
}

.alert-uiverse-btn-primary {
    display: inline-flex;
    padding: 0.5rem 1rem;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 500;
    justify-content: center;
    width: 100%;
    border-radius: 0.375rem;
    border-width: 1px;
    border-color: transparent;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.alert-uiverse-btn-primary:hover {
    opacity: 0.9;
}

.alert-uiverse-btn-secondary {
    display: inline-flex;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    color: #374151;
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 500;
    justify-content: center;
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.alert-uiverse-btn-secondary:hover {
    background-color: #f3f4f6;
}

.alert-uiverse-btn-danger {
    display: inline-flex;
    padding: 0.5rem 1rem;
    background-color: #dc2626;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 500;
    justify-content: center;
    width: 100%;
    border-radius: 0.375rem;
    border-width: 1px;
    border-color: transparent;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.alert-uiverse-btn-danger:hover {
    opacity: 0.9;
}