/* 
   Premium Confirmation Modal Styles 
   Design: Modern, Sleek, Glassmorphism 
*/

:root {
    --confirm-overlay: rgba(15, 23, 42, 0.4);
    --confirm-glass: rgba(255, 255, 255, 0.8);
    --confirm-border: rgba(255, 255, 255, 0.5);
    --confirm-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] {
    --confirm-overlay: rgba(2, 6, 23, 0.6);
    --confirm-glass: rgba(30, 41, 59, 0.8);
    --confirm-border: rgba(255, 255, 255, 0.05);
}

.riyago-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--confirm-overlay);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10005;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.riyago-confirm-overlay.active {
    display: flex;
    opacity: 1;
}

.riyago-confirm-modal {
    background: var(--confirm-glass);
    width: 420px;
    max-width: 90vw;
    border-radius: 28px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--confirm-shadow);
    border: 1px solid var(--confirm-border);
    transform: translateY(30px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.riyago-confirm-overlay.active .riyago-confirm-modal {
    transform: translateY(0) scale(1);
}

/* Modal Shine Effect */
.riyago-confirm-modal::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.riyago-confirm-icon-box {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
    animation: bounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}


@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Status variants */
.icon-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.icon-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.icon-info {
    background: linear-gradient(135deg, rgba(76, 51, 152, 0.2), rgba(76, 51, 152, 0.1));
    color: #4c3398;
    border: 1px solid rgba(76, 51, 152, 0.2);
}

.riyago-confirm-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

[data-theme="dark"] .riyago-confirm-title {
    color: #f8fafc;
}

.riyago-confirm-text {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

[data-theme="dark"] .riyago-confirm-text {
    color: #94a3b8;
}

.riyago-confirm-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-confirm {
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-confirm:active {
    transform: scale(0.96);
}

.btn-cancel {
    background: #f1f5f9;
    color: #475569;
}

.btn-cancel:hover {
    background: #e2e8f0;
    color: #1e293b;
}

[data-theme="dark"] .btn-cancel {
    background: #334155;
    color: #cbd5e1;
}

[data-theme="dark"] .btn-cancel:hover {
    background: #475569;
    color: #f8fafc;
}

.btn-proceed-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(239, 68, 68, 0.3);
}

.btn-proceed-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(239, 68, 68, 0.4);
}

.btn-proceed-primary {
    background: linear-gradient(135deg, #4c3398, #7d5fff);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(76, 51, 152, 0.3);
}

.btn-proceed-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(76, 51, 152, 0.4);
}