/* 模态框美化样式 */

/* 单选项列表样式 */
.sensor-radio-list .form-check,
.date-radio-list .form-check,
.startup-radio-list .form-check {
    padding: 12px 15px;
    margin: 8px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.sensor-radio-list .form-check:hover {
    background-color: rgba(102, 126, 234, 0.05);
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateX(5px);
}

.sensor-radio-list .form-check-input:checked ~ .form-check-label {
    color: #667eea;
    font-weight: 600;
}

.test-run-radio-list .form-check {
    padding: 12px 15px;
    margin: 8px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.test-run-radio-list .form-check:hover {
    background-color: rgba(79, 172, 254, 0.05);
    border-color: rgba(79, 172, 254, 0.2);
    transform: translateX(5px);
}

.test-run-radio-list .form-check-input:checked ~ .form-check-label {
    color: #4facfe;
    font-weight: 600;
}

.date-radio-list .form-check:hover {
    background-color: rgba(255, 154, 0, 0.05);
    border-color: rgba(255, 154, 0, 0.2);
    transform: translateX(5px);
}

.date-radio-list .form-check-input:checked ~ .form-check-label {
    color: #ff9a00;
    font-weight: 600;
}

.startup-radio-list .form-check:hover {
    background-color: rgba(17, 153, 142, 0.05);
    border-color: rgba(17, 153, 142, 0.2);
    transform: translateX(5px);
}

.startup-radio-list .form-check-input:checked ~ .form-check-label {
    color: #11998e;
    font-weight: 600;
}

/* 多选框列表样式 */
.sensor-check-list .form-check {
    padding: 10px 15px;
    margin: 6px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(102, 126, 234, 0.1);
    background: white;
}

.sensor-check-list .form-check:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(3px);
}

.sensor-check-list .form-check-input:checked ~ .form-check-label {
    color: #667eea;
    font-weight: 600;
}

.sensor-check-list .form-check-input {
    border-radius: 4px;
}

.sensor-check-list .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

/* 模态框头部渐变背景 */
.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
    padding: 20px 25px;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

/* 模态框内容区域 */
.modal-body {
    padding: 25px;
}

/* 模态框底部 */
.modal-footer {
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    padding: 15px 25px;
}

/* 按钮样式优化 */
.btn {
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.btn-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.2);
}

.btn-info:hover {
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.3);
    transform: translateY(-2px);
}

/* 搜索框样式 */
.form-control {
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.1);
}

/* 滚动条美化 - 白灰色，默认隐藏轨道 */

/* 页面主体滚动条：隐藏但保留滚动功能 */
html, body {
    scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    display: none;
}

/* 其他容器滚动条：hover 时显示白灰色 */
*:not(html):not(body) {
    scrollbar-width: none;
}

*:not(html):not(body):hover {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

*:not(html):not(body)::-webkit-scrollbar {
    width: 0;
    height: 0;
}

*:not(html):not(body):hover::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*:not(html):not(body)::-webkit-scrollbar-track {
    background: transparent;
}

*:not(html):not(body)::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 3px;
}

*:not(html):not(body):hover::-webkit-scrollbar-thumb {
    background: #d1d5db;
}

*:not(html):not(body)::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* 动画效果 */
.modal.fade .modal-dialog {
    transition: transform 0.4s ease-out;
    transform: scale(0.9) translateY(-50px);
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* 数据表格美化 */
.dash-table-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.dash-spreadsheet-container {
    border-radius: 12px;
}

/* 卡片阴影优化 */
.shadow-sm {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transition: box-shadow 0.3s ease;
}

.shadow-sm:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
}
