/**
 * Custom Confirm Dialog Styles
 * Mobile-friendly modal dialog
 */

.custom-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    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: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    width: 400px;
    animation: slideIn 0.2s ease-out;
}

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

.custom-confirm-body {
    padding: 24px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

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

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

.custom-confirm-btn {
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    min-width: 100px;
    transition: all 0.2s ease;
}

.custom-confirm-btn:focus {
    outline: 3px solid rgba(0, 123, 255, 0.3);
    outline-offset: 2px;
}

.custom-confirm-deny {
    background-color: #6c757d;
    color: white;
}

.custom-confirm-deny:hover {
    background-color: #5a6268;
}

.custom-confirm-approve {
    background-color: #007bff;
    color: white;
}

.custom-confirm-approve:hover {
    background-color: #0056b3;
}

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

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

    .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(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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