/**
 * Custom Confirm Dialog Styles
 * Dark theme — matches Pacstaff look
 */

.custom-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

.custom-confirm-overlay.custom-confirm-closing {
    animation: fadeOut 0.2s ease-out;
}

.custom-confirm-modal {
    background: linear-gradient(135deg, #1c1d48 0%, #2a2b5a 50%, #1c1d48 100%);
    border: 8px solid #0080ff;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(68, 85, 170, 0.4), 0 8px 32px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    width: 420px;
    animation: slideIn 0.25s ease-out;
}

.custom-confirm-closing .custom-confirm-modal {
    animation: slideOut 0.2s ease-out;
}

.custom-confirm-body {
    padding: 28px 28px 16px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #dde;
}

.custom-confirm-body p {
    margin: 0;
    text-align: center;
}

.custom-confirm-footer {
    padding: 8px 28px 24px;
    display: flex;
    justify-content: center;
    gap: 14px;
}

.custom-confirm-btn {
    padding: 10px 28px;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    min-width: 100px;
    letter-spacing: 0.02em;
    transition: all 0.15s ease;
}

.custom-confirm-btn:hover {
    filter: brightness(1.25);
    border-color: rgba(255, 255, 255, 0.3);
}

.custom-confirm-btn:focus {
    outline: none;
}

/* Default (focused) button gets a glow ring */
.custom-confirm-btn.custom-confirm-default {
    box-shadow: 0 0 12px rgba(100, 140, 255, 0.5), 0 0 4px rgba(100, 140, 255, 0.3);
    border-color: #6688ee;
}

/* Non-default dims slightly */
.custom-confirm-btn.custom-confirm-non-default {
    opacity: 0.75;
}

.custom-confirm-btn.custom-confirm-non-default:hover {
    opacity: 1;
}

/* Mobile optimization */
@media screen and (max-width: 480px) {
    .custom-confirm-modal {
        max-width: 95%;
        margin: 0 10px;
    }

    .custom-confirm-body {
        padding: 20px;
        font-size: 1rem;
    }

    .custom-confirm-footer {
        flex-direction: column;
        gap: 8px;
    }

    .custom-confirm-btn {
        width: 100%;
        min-height: 44px; /* Touch-friendly */
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideIn {
    from {
        transform: translateY(-30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }
}
