.confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.confirm-overlay.active {
    display: flex;
}

.confirm-box {
    background: #1f2937;
    color: #fff;
    width: 100%;
    max-width: 420px;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,.3);
    animation: confirmFadeIn .2s ease;
}

.confirm-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(239,68,68,.15);
    color: #ef4444;
    font-size: 30px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.confirm-box h3 {
    font-size: 22px;
    margin: 0 0 12px;
}

.confirm-box p {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.confirm-actions {
    display: flex;
    gap: 12px;
}

.confirm-btn {
    flex: 1;
    border: none;
    border-radius: 7px;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: .2s;
}

.cancel-btn {
    background: #374151;
    color: #fff;
}

.cancel-btn:hover {
    background: #4b5563;
}

.confirm-btn-danger {
    background: #dc2626;
    color: #fff;
}

.confirm-btn-danger:hover {
    background: #b91c1c;
}

@keyframes confirmFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media(max-width:480px) {
    .confirm-box {
        padding: 24px 20px;
    }
}



/* alert modal  */
.alert-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.alert-overlay.active {
    display: flex;
}

.alert-box {
    background: #1f2937;
    color: #fff;
    width: 100%;
    max-width: 420px;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,.3);
    animation: alertFadeIn .2s ease;
}

.alert-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 30px;
    font-weight: bold;
}

/* Success */
.alert-icon.success {
    background: rgba(34,197,94,.15);
    color: #22c55e;
}

/* Error / Danger */
.alert-icon.error {
    background: rgba(239,68,68,.15);
    color: #ef4444;
}

/* Warning */
.alert-icon.warning {
    background: rgba(245,158,11,.15);
    color: #f59e0b;
}

/* Info */
.alert-icon.info {
    background: rgba(59,130,246,.15);
    color: #3b82f6;
}

.alert-box h3 {
    font-size: 22px;
    margin: 0 0 12px;
    color: #fff;
}

.alert-box p {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 25px;
}

.alert-actions {
    display: flex;
}

.alert-btn {
    width: 100%;
    border: none;
    border-radius: 7px;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: .2s;
}

.alert-btn.success { background: #16a34a; }
.alert-btn.success:hover { background: #15803d; }

.alert-btn.error { background: #dc2626; }
.alert-btn.error:hover { background: #b91c1c; }

.alert-btn.warning { background: #d97706; }
.alert-btn.warning:hover { background: #b45309; }

.alert-btn.info { background: #2563eb; }
.alert-btn.info:hover { background: #1d4ed8; }

@keyframes alertFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media(max-width:480px) {
    .alert-box {
        padding: 24px 20px;
    }
}