/* ============================================
   CONFIRMATION MODAL
   ============================================ */

.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-out;
}

.confirm-modal:not(.hidden) {
    opacity: 1;
    pointer-events: all;
}

.confirm-modal.hidden {
    display: none;
}

.confirm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease-out;
}

.confirm-modal:not(.hidden) .confirm-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.confirm-content {
    position: relative;
    background: var(--bg-card);
    border: 5px solid #000;
    border-radius: 30px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 10px 10px 0px #000;
    text-align: center;
    transform: scale(0.7) translateY(-20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confirm-modal:not(.hidden) .confirm-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.confirm-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid #000;
    box-shadow: var(--shadow);
    animation: gentleWiggle 2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes gentleWiggle {

    0%,
    100% {
        transform: rotate(-3deg) scale(1);
    }

    25% {
        transform: rotate(3deg) scale(1.02);
    }

    50% {
        transform: rotate(-2deg) scale(1);
    }

    75% {
        transform: rotate(2deg) scale(1.02);
    }
}

.confirm-icon i {
    font-size: 3rem;
    color: var(--orange);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.confirm-content h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(10px);
    animation: slideInText 0.5s ease-out 0.2s forwards;
}

@keyframes slideInText {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.confirm-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    animation: slideInButtons 0.5s ease-out 0.3s forwards;
}

@keyframes slideInButtons {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-confirm-cancel,
.btn-confirm-ok {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 4px solid #000;
    box-shadow: var(--shadow);
    font-family: 'Fredoka One', cursive;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.btn-confirm-cancel {
    background: var(--cyan);
    color: #000;
}

.btn-confirm-ok {
    background: var(--hot-pink);
    color: white;
}

.btn-confirm-cancel:hover,
.btn-confirm-ok:hover {
    transform: translateY(-2px);
    box-shadow: 8px 8px 0px #000;
}

.btn-confirm-cancel:active,
.btn-confirm-ok:active {
    transform: translate(4px, 4px);
    box-shadow: 2px 2px 0px #000;
}

.btn-confirm-cancel:hover {
    background: #00D4FF;
}

.btn-confirm-ok:hover {
    background: #FF1F6B;
}

@media (max-width: 480px) {
    .confirm-content {
        padding: 1.5rem;
    }

    .confirm-icon {
        width: 80px;
        height: 80px;
    }

    .confirm-icon i {
        font-size: 2.5rem;
    }

    .confirm-content h3 {
        font-size: 1.2rem;
    }

    .confirm-buttons {
        flex-direction: column;
    }

    .btn-confirm-cancel,
    .btn-confirm-ok {
        width: 100%;
    }
}