/* Premium Waselha Custom Confirmation Dialog CSS */

.ws-dialog-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
    padding: 1rem;
    animation: ws-dialog-fade-in 0.25s ease-out forwards;
}

.ws-dialog-card {
    background-color: var(--fallback-b1, oklch(var(--b1)));
    color: var(--fallback-bc, oklch(var(--bc)));
    max-width: 400px;
    width: 100%;
    border-radius: var(--rounded-box, 1rem);
    border: 1px solid var(--fallback-b3, oklch(var(--b3)));
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    padding: 1.75rem;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    animation: ws-dialog-zoom-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.ws-dialog-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--fallback-p, oklch(var(--p) / 0.1));
    color: var(--fallback-p, oklch(var(--p)));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem auto;
}

.ws-dialog-icon i {
    font-size: 1.75rem;
}

/* Warn/Alert state icon coloring */
.ws-dialog-icon.ws-dialog-warning {
    background-color: oklch(var(--wa) / 0.1);
    color: var(--fallback-wa, oklch(var(--wa)));
}

.ws-dialog-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--fallback-bc, oklch(var(--bc)));
}

.ws-dialog-text {
    font-size: 0.95rem;
    color: var(--fallback-bc, oklch(var(--bc) / 0.75));
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.ws-dialog-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.ws-dialog-btn {
    flex: 1;
    padding: 0.65rem 1.25rem;
    border-radius: var(--rounded-btn, 0.5rem);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ws-dialog-btn-confirm {
    background-color: var(--fallback-p, oklch(var(--p)));
    color: var(--fallback-pc, oklch(var(--pc)));
}

.ws-dialog-btn-confirm:hover {
    filter: brightness(0.92);
}

.ws-dialog-btn-cancel {
    background-color: var(--fallback-b3, oklch(var(--b3)));
    color: var(--fallback-bc, oklch(var(--bc)));
    border-color: var(--fallback-b3, oklch(var(--b3)));
}

.ws-dialog-btn-cancel:hover {
    background-color: var(--fallback-b2, oklch(var(--b2)));
}

/* Animations */
@keyframes ws-dialog-fade-in {
    from { background-color: rgba(0, 0, 0, 0); }
    to { background-color: rgba(0, 0, 0, 0.4); }
}

@keyframes ws-dialog-zoom-in {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
