/* 自定义样式 */




/* 输入框样式 */
.form-control,
.form-select {
    padding: 0.5rem 0.75rem !important;
    height: 38px !important;
    border-color: #e5e7eb;
    font-size: 0.875rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

/* 图表容器样式 */
.chart-container {
    position: relative;
    margin: auto;
    transition: all 0.3s ease;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
}

/* 图表大小 */
.chart-size-small {
    width: 100% !important;
    height: 100% !important;
}

.chart-size-medium {
    width: 100% !important;
    height: 100% !important;
}

.chart-size-large {
    width: 100% !important;
    height: 100% !important;
}

/* 数据系列样式 */
.series-item {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    position: relative;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
}

.series-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.series-header .d-flex {
    flex: 1;
    margin-right: 1rem;
}

.series-header .series-name {
    flex: 1;
}

.series-tools {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.point-input {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

.point-input > div {
    flex: 1;
}

.point-input .form-control {
    width: 100%;
}

.point-input .remove-point {
    flex-shrink: 0;
    padding: 0.25rem;
    color: #dc3545;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.point-input .remove-point:hover {
    color: #bb2d3b;
}

/* 按钮样式 */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.add-point {
    color: #0d6efd;
    background: none;
    border: none;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.add-point:hover {
    color: #0a58ca;
}

.remove-series {
    color: #dc3545;
    background: none;
    border: none;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.remove-series:hover {
    color: #bb2d3b;
}

/* 颜色选择器样式 */
input[type="color"] {
    -webkit-appearance: none;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    width: 40px;
    height: 31px;
    cursor: pointer;
    background: white;
    flex-shrink: 0;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 2px;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 2px;
}

/* 提示框样式 */
.tooltip-custom {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #1f2937;
    color: white;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    white-space: nowrap;
    z-index: 1000;
}

/* 动画效果 */
.series-item {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bootstrap 覆盖样式 */


.form-check-input:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.form-check-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.form-check-label {
    font-size: 0.875rem;
    color: #374151;
}

.btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-success {
    background-color: #059669;
    border-color: #059669;
}

.btn-success:hover {
    background-color: #047857;
    border-color: #047857;
}
