/* 基站编辑弹框样式 */

/* Modal自定义宽度 */
.modal-lg-custom {
    width: 90%;
    max-width: 1200px;
}

/* 编辑容器布局 */
.cell-tower-edit-container {
    display: flex;
    gap: 10px;
    min-height: 600px;
}

/* 左侧表单区域 */
.form-section {
    flex: 0 0 40%;
    overflow-y: auto;
    padding-right: 15px;
}

/* 右侧地图区域 */
.map-section {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
}

/* 原始信息样式 */
.original-info {
    background-color: #f5f5f5;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.original-info legend {
    font-size: 14px;
    font-weight: bold;
    color: #666;
    border-bottom: none;
    margin-bottom: 10px;
    width: auto;
    padding: 0 10px 0 0;
}

/* 修改后信息样式 */
.modified-info {
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.modified-info legend {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    border-bottom: none;
    margin-bottom: 10px;
    width: auto;
    padding: 0 10px 0 0;
}

/* 地图搜索框 */
.map-search-box {
    margin-bottom: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.map-search-box input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 地图容器 */
.map-container {
    flex: 1;
    min-height: 450px;
    border: 1px solid #ddd;
    border-radius: 4px;
    position: relative;
}

/* 地图图例 */
.map-legend {
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.legend-item:hover {
    background-color: #f0f0f0;
}

.legend-item:active {
    background-color: #e0e0e0;
}

.legend-icon {
    width: 20px;
    height: 25px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.legend-icon.original {
    background-image: url('/public/images/marker_blue.png');
}

.legend-icon.modified {
    background-image: url('/public/images/marker_red.png');
}

/* 响应式布局 - 小屏幕 */
@media (max-width: 992px) {
    .modal-lg-custom {
        width: 95%;
    }
    
    .cell-tower-edit-container {
        flex-direction: column;
    }
    
    .form-section,
    .map-section {
        flex: 1 1 100%;
    }
    
    .map-container {
        min-height: 350px;
    }
}

/* 表单组样式优化 */
.form-section .form-group {
    margin-bottom: 15px;
}

.form-section .form-group label {
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

/* 只读字段样式 */
.form-section .form-control[disabled],
.form-section .form-control[readonly] {
    background-color: #f9f9f9;
    cursor: not-allowed;
    color: #666;
}

/* 搜索框提示文字 */
.map-search-box .search-tip {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* 地图加载提示 */
.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #999;
}

/* 地图控制按钮样式 */
.map-control-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 6px 12px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.map-control-btn:hover {
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    border-color: #007bff !important;
}
