.canvas-container {
    position: relative;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background: #f8f9fa;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#image-canvas {
    max-width: 100%;
    max-height: 500px;
    display: block;
}

.tool-panel {
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    padding: 1.25rem;
    padding-top:.5rem;
    height: 100%;
}

.control-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.control-label span:last-child {
    font-weight: bold;
    color: #0d6efd;
}

.filter-control {
    margin-bottom: .1rem;
}

.preset-btn {
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

.preset-btn:hover {
    transform: translateY(-2px);
}

.action-btn {
    margin-bottom: 0.75rem;
}

.upload-area {
    border: 2px dashed #6c757d;
    border-radius: 0.375rem;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background-color: rgba(108, 117, 125, 0.05);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.upload-area:hover {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

.upload-area i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #6c757d;
}

.canvas-container.dragover .upload-area {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
}

.filter-preset {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.filter-value-display {
    font-weight: bold;
    min-width: 40px;
    text-align: right;
}

/* 改进滑块样式 */
.form-range {
    width: 100%;
    height: 1rem;
    padding: 0;
    background-color: transparent;
}

.form-range::-webkit-slider-runnable-track {
    width: 100%;
    height: 0.5rem;
    cursor: pointer;
    background: linear-gradient(to right, #0d6efd, #dc3545);
    border-radius: 0.25rem;
    border: 1px solid #adb5bd;
}

.form-range::-webkit-slider-thumb {
    height: 1.2rem;
    width: 1.2rem;
    border-radius: 50%;
    background: #0d6efd;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -0.35rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 2px solid #ffffff;
}

.form-range::-moz-range-track {
    width: 100%;
    height: 0.5rem;
    cursor: pointer;
    background: linear-gradient(to right, #0d6efd, #dc3545);
    border-radius: 0.25rem;
    border: 1px solid #adb5bd;
}

.form-range::-moz-range-thumb {
    height: 1.2rem;
    width: 1.2rem;
    border-radius: 50%;
    background: #0d6efd;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.processing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    display: none;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.action-buttons .btn {
    flex: 1;
    min-width: 140px;
}

@media (max-width: 768px) {
    .action-buttons .btn {
        min-width: 120px;
    }
}

.filter-category {
    /*margin-top: 1.5rem;*/
    padding-top: .5rem;
    border-top: 1px solid #dee2e6;
}

.filter-category h6 {
    color: #495057;
    margin-bottom: 1rem;
    font-weight: 600;
}

.sample-images {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.sample-image {
    width: 80px;
    height: 60px;
    border-radius: 0.25rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.sample-image:hover {
    border-color: #0d6efd;
    transform: scale(1.05);
}

.sample-image.active {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.sample-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-input {
    display: none;
}
