/* ============================================================
   Base Modal Windows Styles
   ============================================================ */

/* Основні модальні вікна */
.gvp-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.gvp-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gvp-modal-overlay-bg);
}

.gvp-modal__content {
    position: relative;
    max-width: 1200px;
    width: 90%;
    margin: 2rem auto;
    background-color: var(--gvp-modal-content-bg);
    border-radius: var(--gvp-modal-radius);
    box-shadow: var(--gvp-shadow-lg);
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.gvp-modal__content--large {
    max-width: 1400px;
}

.gvp-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--gvp-modal-padding);
    border-bottom: 1px solid var(--gvp-modal-header-border);
    flex-shrink: 0;
}

.gvp-modal__title {
    font-size: var(--gvp-modal-title-size);
    font-weight: 700;
    color: var(--gvp-modal-title-color);
}

.gvp-modal__close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gvp-modal-close-color);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.gvp-modal__close:hover {
    background-color: var(--gvp-modal-close-hover-bg);
}

/* Стилі для вкладок */
.gvp-modal__tabs {
    display: flex;
    border-bottom: 1px solid var(--gvp-modal-header-border);
    padding: 0 var(--gvp-modal-padding);
    gap: 0.5rem;
    flex-shrink: 0;
    overflow-x: auto;
}

.gvp-modal__tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: var(--gvp-color-text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    position: relative;
}

.gvp-modal__tab:hover {
    color: var(--gvp-color-text);
    background-color: rgba(37, 99, 235, 0.05);
}

.gvp-modal__tab--active {
    color: var(--gvp-color-primary);
    border-bottom-color: var(--gvp-color-primary);
}

.gvp-modal__tab-content {
    display: none;
    padding: var(--gvp-modal-padding);
    flex: 1;
    overflow-y: auto;
}

.gvp-modal__tab-content--active {
    display: block;
}

/* Адаптивність для менших екранів */
@media (max-width: 768px) {
    .gvp-modal__content {
        max-width: 95%;
        width: 95%;
        margin: 1rem auto;
        max-height: calc(100vh - 2rem);
    }
    
    .gvp-modal__tabs {
        padding: 0 1rem;
    }
    
    .gvp-modal__tab {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}
