﻿
/* 侧边配置面板 */
.config-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .config-sidebar.open {
        right: 0;
    }

.config-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.config-sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
}

.config-sidebar-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

    .config-sidebar-close:hover {
        background-color: #e9ecef;
        color: #212529;
    }

.config-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.config-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

    .config-overlay.show {
        display: block;
    }

/* 配置项样式 */
.config-section {
    margin-bottom: 24px;
}

.config-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
}

.config-item {
    margin-bottom: 16px;
}

.config-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

.config-description {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 8px;
}

.config-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

    .config-input:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    }

.config-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    background-color: white;
    transition: border-color 0.3s;
}

    .config-select:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    }

.config-range-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.config-range {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background-color: #dee2e6;
    outline: none;
    -webkit-appearance: none;
}

    .config-range::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background-color: #007bff;
        cursor: pointer;
        transition: background-color 0.3s;
    }

        .config-range::-webkit-slider-thumb:hover {
            background-color: #0056b3;
        }

.config-range-value {
    min-width: 50px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #007bff;
}

.config-sidebar-footer {
    padding: 20px;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 12px;
}

.config-btn-reset {
    flex: 1;
    padding: 12px;
    background-color: white;
    border: 1px solid #ced4da;
    border-radius: 8px;
    color: #6c757d;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

    .config-btn-reset:hover {
        background-color: #f8f9fa;
        color: #495057;
    }

.config-btn-save {
    flex: 2;
    padding: 12px;
    background-color: #007bff;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .config-btn-save:hover {
        background-color: #0056b3;
    }

/* 视频配置选择器 */
.video-config-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.video-config-option {
    padding: 8px 16px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
}

    .video-config-option:hover {
        border-color: #007bff;
        background-color: #f8f9fa;
    }

    .video-config-option.selected {
        border-color: #007bff;
        background-color: #007bff;
        color: white;
    }

/* 图像配置选择器 */
.image-config-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.image-config-option {
    padding: 8px 16px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
}

    .image-config-option:hover {
        border-color: #007bff;
        background-color: #f8f9fa;
    }

    .image-config-option.selected {
        border-color: #007bff;
        background-color: #007bff;
        color: white;
    }