﻿/* ==== AppAlert Modal v2 ==== */
#app-alert-root {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    z-index: 2147483647;
    transition: opacity .25s ease;
}

    #app-alert-root.active {
        display: flex;
        opacity: 1;
    }

.app-alert-modal {
    background: #1f2937;
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    width: min(90vw, 420px);
    padding: 22px 24px;
    text-align: center;
    transform: translateY(-10px);
    opacity: 0;
    transition: all .3s ease;
}

    .app-alert-modal.show {
        transform: translateY(0);
        opacity: 1;
    }

    .app-alert-modal .aa-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }

    .app-alert-modal.success .aa-icon {
        fill: #10b981;
    }

    .app-alert-modal.error .aa-icon {
        fill: #ef4444;
    }

    .app-alert-modal.warning .aa-icon {
        fill: #f59e0b;
    }

    .app-alert-modal.info .aa-icon {
        fill: #3b82f6;
    }

    .app-alert-modal .aa-title {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 6px;
    }

    .app-alert-modal .aa-msg {
        color: #e5e7eb;
        font-size: 15px;
        margin-bottom: 18px;
    }

    .app-alert-modal .aa-close-btn {
        background: #374151;
        color: #fff;
        border: none;
        border-radius: 10px;
        padding: 10px 20px;
        cursor: pointer;
        transition: background .2s ease;
    }

        .app-alert-modal .aa-close-btn:hover {
            background: #4b5563;
        }

@@media (prefers-color-scheme: light) {
    .app-alert-modal {
        background: #f8fafc;
        color: #111;
    }

        .app-alert-modal .aa-msg {
            color: #374151;
        }
}
