/**
 * Стили для дропдаунов в панели конфигурации
 */

/* Основные стили дропдаунов */
.dropdown-wrapper {
    position: relative;
    z-index: 1000;
    width: 300px;
}

.dropdown-button {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px 12px 8px 16px;
    gap: 8px;
    width: 100%;
    height: 35px;
    background: #FFFFFF;
    border: 1px solid rgba(16, 28, 137, 0.1);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-button:hover {
    border-color: rgba(16, 28, 137, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dropdown-text {
    font-family: 'Gilroy', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
    line-height: 14px;
    color: #101C89;
    flex: 1;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
    z-index: 9999999 !important;
    display: none !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    margin-top: 4px;
}

.dropdown-option {
    padding: 12px 16px !important;
    cursor: pointer !important;
    background: transparent !important;
    border: none !important;
    transition: none !important;
    font-size: 14px !important;
    color: #333 !important;
    white-space: nowrap !important;
    font-family: 'Gilroy', sans-serif;
    font-weight: 400;
    display: block;
    width: 100%;
    text-align: left;
}

.dropdown-option:hover {
    background: rgba(16, 28, 137, 0.1) !important;
}

.dropdown-option.selected {
    background: rgba(16, 28, 137, 0.15) !important;
    font-weight: 500 !important;
}

/* Предотвращаем конфликты с другими элементами */
.calculator-item {
    position: relative;
    z-index: 1;
}

.calculator-item.dropdown-open {
    z-index: 1001;
}

/* Стили для интерактивных областей */
.interactive-areas-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.configuration-area {
    pointer-events: auto;
    transition: all 0.3s ease;
}

.configuration-area:hover {
    background-color: rgba(16, 28, 137, 0.4) !important;
    border-color: rgba(16, 28, 137, 0.6) !important;
    box-shadow: 0 0 10px rgba(16, 28, 137, 0.5);
}

.configuration-area.selected {
    background-color: rgba(40, 167, 69, 0.3) !important;
    border-color: #28a745 !important;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.6);
}

/* Стили для панели конфигурации */
.configuration-calculator {
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.calculator-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .dropdown-wrapper {
        width: 100%;
    }
    
    .dropdown-button {
        height: 40px;
        padding: 10px 14px 10px 18px;
    }
    
    .dropdown-text {
        font-size: 14px;
        line-height: 16px;
    }
    
    .dropdown-option {
        padding: 14px 18px !important;
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .dropdown-button {
        height: 44px;
        padding: 12px 16px 12px 20px;
    }
    
    .dropdown-text {
        font-size: 16px;
        line-height: 18px;
    }
    
    .dropdown-option {
        padding: 16px 20px !important;
        font-size: 18px !important;
    }
}