/* CSS Filter Effects Tool Styles */
.filter-effects-tool {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.preview-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.image-preview-wrapper {
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    position: relative;
}

#filtered-image {
    max-width: 100%;
    max-height: 500px;
    transition: filter 0.3s ease;
    display: block;
    margin: 0 auto;
}

.filter-controls {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
    overflow-y: auto;
    max-height: 800px;
}

.filter-control-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.filter-control-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-range::-webkit-slider-thumb {
    background: #0d6efd;
}

.form-range::-moz-range-thumb {
    background: #0d6efd;
}

.form-range::-ms-thumb {
    background: #0d6efd;
}

#css-code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 0;
    min-height: 80px;
}

.preset-filter {
    transition: all 0.2s ease;
}

.preset-filter:hover {
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .image-preview-wrapper {
        min-height: 200px;
    }
    
    .filter-controls {
        max-height: none;
    }
}

/* Loading indicator */
.loading-indicator {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.loading .loading-indicator {
    display: block;
}

.loading #filtered-image {
    opacity: 0.5;
}

/* Drag and drop styles */
.image-preview-wrapper.drag-over {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
}