/**
 * Custom Confirmation Modal System
 * Beautiful modals to replace basic browser confirm() dialogs
 */

.custom-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-confirm-modal.active {
    opacity: 1;
    visibility: visible;
}

.custom-confirm-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.custom-confirm-modal.active .custom-confirm-content {
    transform: translateY(0);
}

.custom-confirm-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.custom-confirm-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
}

.custom-confirm-icon.warning {
    background: linear-gradient(135deg, #ff9500 0%, #ff6b35 100%);
    color: white;
}

.custom-confirm-icon.danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.custom-confirm-icon.info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.custom-confirm-icon.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.custom-confirm-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.custom-confirm-message {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.custom-confirm-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.custom-confirm-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    min-width: 100px;
}

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

.custom-confirm-btn.cancel:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.custom-confirm-btn.confirm {
    background: linear-gradient(135deg, #1488CC 0%, #2B32B2 100%);
    color: white;
}

.custom-confirm-btn.confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(20, 136, 204, 0.4);
}

.custom-confirm-btn.confirm.danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.custom-confirm-btn.confirm.danger:hover {
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.custom-confirm-btn.confirm.warning {
    background: linear-gradient(135deg, #ff9500 0%, #ff6b35 100%);
}

.custom-confirm-btn.confirm.warning:hover {
    box-shadow: 0 5px 15px rgba(255, 149, 0, 0.4);
}

/* Animation keyframes */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive design */
@media (max-width: 576px) {
    .custom-confirm-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .custom-confirm-actions {
        flex-direction: column;
    }
    
    .custom-confirm-btn {
        width: 100%;
    }
}