/* Custom Modal Styles */

.custom-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
}

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: all;
}

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

.custom-modal {
    background-color: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    pointer-events: all;
}

.custom-modal.active {
    transform: scale(1) translateY(0);
}

.custom-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
}

.custom-modal-icon {
    font-size: 2rem;
    line-height: 1;
}

.custom-modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}

.custom-modal-body {
    padding: 2rem;
}

.custom-modal-message {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.custom-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background-color: var(--bg-secondary);
}

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

.custom-modal-btn-confirm {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.custom-modal-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.15);
}

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

.custom-modal-btn-cancel {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.custom-modal-btn-cancel:hover {
    background-color: var(--bg-secondary);
    border-color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .custom-modal {
        width: 95%;
        margin: 1rem;
    }

    .custom-modal-header,
    .custom-modal-body,
    .custom-modal-footer {
        padding: 1.25rem 1.5rem;
    }

    .custom-modal-title {
        font-size: 1.25rem;
    }

    .custom-modal-footer {
        flex-direction: column-reverse;
    }

    .custom-modal-btn {
        width: 100%;
    }
}

