
.upload-area {
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--bs-primary) !important;
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

.upload-area.dragover {
    border-color: var(--bs-primary) !important;
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    transform: scale(1.02);
}

.noise-settings {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.form-range {
    height: 6px;
}

.form-range::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--bs-primary);
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.form-range::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--bs-primary);
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Enhanced density and intensity sliders */
.density-slider-container,
.intensity-slider-container {
    position: relative;
    margin-bottom: 10px;
}

.density-slider,
.intensity-slider {
    height: 8px;
    border-radius: 4px;
}

.density-slider {
    background: linear-gradient(to right, #e9ecef 0%, #6c757d 50%, #343a40 100%);
}

.intensity-slider {
    background: linear-gradient(to right, #28a745 0%, #ffc107 50%, #dc3545 100%);
}

.density-slider::-webkit-slider-thumb,
.intensity-slider::-webkit-slider-thumb {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.density-slider::-webkit-slider-thumb {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-primary-dark, #0056b3));
}

.intensity-slider::-webkit-slider-thumb {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.density-slider::-webkit-slider-thumb:hover,
.intensity-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.density-slider::-moz-range-thumb,
.intensity-slider::-moz-range-thumb {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.density-slider::-moz-range-thumb {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-primary-dark, #0056b3));
}

.intensity-slider::-moz-range-thumb {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.density-markers,
.intensity-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.75rem;
    color: #6c757d;
}

.density-markers .marker,
.intensity-markers .marker {
    position: relative;
    cursor: pointer;
    transition: color 0.2s ease;
}

.density-markers .marker:hover {
    color: var(--bs-primary);
}

.intensity-markers .marker:hover {
    color: #17a2b8;
}

.density-markers .marker::before,
.intensity-markers .marker::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background: #dee2e6;
    border-radius: 1px;
}

.density-presets,
.intensity-presets {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.density-preset,
.intensity-preset {
    padding: 4px 12px;
    font-size: 0.8rem;
    border-radius: 20px;
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
    background: #fff;
}

.density-preset:hover {
    background: #f8f9fa;
    border-color: var(--bs-primary);
    transform: translateY(-1px);
}

.intensity-preset:hover {
    background: #f8f9fa;
    border-color: #17a2b8;
    transform: translateY(-1px);
}

.density-preset.active {
    background: var(--bs-primary);
    color: #fff;
    border-color: var(--bs-primary);
}

.intensity-preset.active {
    background: #17a2b8;
    color: #fff;
    border-color: #17a2b8;
}

.density-preset i,
.intensity-preset i {
    opacity: 0.8;
}

/* Badge styling for density and intensity values */
#densityValue,
#intensityValue {
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 12px;
    min-width: 45px;
    text-align: center;
}

.image-container {
    position: relative;
    text-align: center;
    margin-bottom: 15px;
}

.image-container {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
}

.image-container canvas {
    max-width: 100%;
    height: auto;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.results-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.progress {
    height: 8px;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* 노이즈 타입별 색상 구분 */
.noise-type-gaussian {
    border-left: 4px solid #007bff;
}

.noise-type-salt-pepper {
    border-left: 4px solid #6c757d;
}

.noise-type-poisson {
    border-left: 4px solid #28a745;
}

.noise-type-speckle {
    border-left: 4px solid #ffc107;
}

.noise-type-uniform {
    border-left: 4px solid #dc3545;
}

#additionalSettings {
    transition: all 0.3s ease;
}

.form-group label {
    font-weight: 600;
    color: #495057;
}

.form-select:focus,
.form-range:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* 반응형 */
@media (max-width: 768px) {
    .col-md-6 {
        margin-bottom: 20px;
    }
    
    .btn-lg {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .ms-2 {
        margin-left: 0 !important;
    }
}

/* 로딩 애니메이션 */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.processing-progress {
    animation: pulse 2s infinite;
}

/* 캔버스 호버 효과 */
.image-container canvas:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
