/* ============================================
   CUSTOM MODAL - Confirmation Dialog
   ============================================ */

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.custom-modal-overlay.show {
    opacity: 1;
}

.custom-modal {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    text-align: center;
}

.custom-modal-overlay.show .custom-modal {
    transform: scale(1);
}

.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.modal-icon.warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 152, 0, 0.2) 100%);
    color: #FFC107;
}

.modal-icon.danger {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2) 0%, rgba(211, 47, 47, 0.2) 100%);
    color: #f44336;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-dark, #2B2B2B);
    margin: 0 0 24px 0;
    line-height: 1.4;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-actions .btn {
    flex: 1;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-actions .btn-secondary {
    background: var(--color-gray-light, #F5F5F5);
    color: var(--color-dark, #2B2B2B);
    border: 1px solid var(--border-color, #E0E0E0);
}

.modal-actions .btn-secondary:hover {
    background: #E8E8E8;
}

.modal-actions .btn-danger {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: #FFFFFF;
}

.modal-actions .btn-danger:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .custom-modal {
        padding: 24px;
    }
    
    .modal-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
}
