/* Reusable Custom Confirmation Modal */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 11000;
    /* Higher than edit modal if needed */
    backdrop-filter: blur(8px);
    animation: customModalFadeIn 0.2s ease-out;
}

.custom-modal {
    background: #212121;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 420px;
    max-width: 90%;
    padding: 32px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
    text-align: center;
    animation: customModalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-modal-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

/* Themes */
.custom-modal-icon.theme-danger {
    color: #ef4444;
}

.custom-modal-icon.theme-info {
    color: #1d9bf0;
}

.custom-modal-icon.theme-warning {
    color: #f59e0b;
}

.custom-modal-title {
    font-size: 22px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}

.custom-modal-text {
    font-size: 16px;
    color: #8e9ba3;
    line-height: 1.6;
    margin-bottom: 32px;
}

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

.custom-modal-btn {
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    border: none;
}

.custom-modal-btn:active {
    transform: scale(0.96);
}

/* Confirm Button Themes */
.custom-modal-btn-confirm.theme-danger {
    background: #ef4444;
    color: white;
}

.custom-modal-btn-confirm.theme-danger:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.custom-modal-btn-confirm.theme-info {
    background: #1d9bf0;
    color: white;
}

.custom-modal-btn-confirm.theme-info:hover {
    background: #1a8cd8;
    box-shadow: 0 4px 12px rgba(29, 155, 240, 0.3);
}

.custom-modal-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

@keyframes customModalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes customModalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

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