.enhancer-container {
    border: 1px solid #ddd; padding: 1.5rem; border-radius: 8px; background-color: #fdfdfd; margin-top: 1rem; display: flex; flex-direction: column; gap: 1.5rem;
}
.important-disclaimer { /* Style the main disclaimer */
    background-color: #fff3cd; color: #856404; border: 1px solid #ffeeba; border-left: 5px solid #ffc107; /* Warning yellow */ padding: 1rem 1.5rem; margin-bottom: 1.5rem; border-radius: 5px; font-size: 0.95em; line-height: 1.5;
}
.important-disclaimer strong { font-weight: bold; display: block; margin-bottom: 0.25rem; }

/* Upload Area */
.upload-area { border: 2px dashed #007bff; padding: 2rem; text-align: center; border-radius: 8px; background-color: #f0f8ff; cursor: pointer; transition: background-color 0.3s ease; position: relative; }
.upload-area:hover { background-color: #e0f0ff; }
.upload-label { display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; color: #0056b3; }
.upload-label svg { margin-bottom: 0.5rem; color: #007bff; }
.upload-label small { color: #555; font-size: 0.9em; margin-top: 0.5rem; }
.file-name-display { margin-top: 1rem; font-style: italic; color: #333; font-size: 0.9em; word-break: break-all; }

/* Editor Area */
.editor-area { border-top: 1px solid #eee; padding-top: 1.5rem; }

/* Previews */
.previews { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.5rem; justify-content: space-around; }
.preview-box { flex: 1; min-width: 250px; text-align: center; border: 1px solid #eee; padding: 1rem; border-radius: 5px; background: #f9f9f9; }
.preview-box h3 { margin-bottom: 0.8rem; color: #333; font-size: 1.1em; }
.img-container { width: 100%; height: 250px; display: flex; align-items: center; justify-content: center; background-color: #e9e9e9; border: 1px solid #ccc; border-radius: 4px; overflow: hidden; margin-bottom: 0.5rem; }
#originalPreview, #enhancedCanvas { display: block; max-width: 100%; max-height: 100%; height: auto; width: auto; object-fit: contain; }
#originalInfo, #enhancedInfo { font-size: 0.85em; color: #555; min-height: 1.2em; }

/* Controls Container */
.controls {
    border-top: 1px solid #eee; padding-top: 1.5rem; margin-bottom: 1.5rem;
}
.controls h3 { margin-bottom: 1rem; text-align: center; color: #333; }

.control-section {
    border: 1px solid #e0e0e0; padding: 1rem; border-radius: 5px; background-color: #fafafa; margin-bottom: 1rem;
}
.control-section:last-child { margin-bottom: 0; }

.control-section h4 { margin-bottom: 1rem; color: #0056b3; font-size: 1.05em; border-bottom: 1px solid #eee; padding-bottom: 0.5rem; }

.auto-section { text-align: center; }

/* Manual Controls Group */
.control-group { display: flex; align-items: center; margin-bottom: 0.8rem; flex-wrap: wrap; }
.control-group label { width: 100px; font-weight: bold; font-size: 0.9em; color: #555; flex-shrink: 0; }
.control-group input[type="range"] { flex-grow: 1; margin: 0 10px; cursor: pointer; min-width: 150px; }
.control-group span { min-width: 40px; text-align: right; font-size: 0.9em; color: #333; }

/* Specific Buttons */
.btn-tool-action { /* For Auto Enhance */
    background-color: #17a2b8; color: white; padding: 10px 20px; display: inline-block; margin: 0 auto; /* Center button */
}
.btn-tool-action:hover { background-color: #138496; color: white; }

.btn-tool-secondary { /* For Reset */
    background-color: #6c757d; color: white; padding: 8px 15px; font-size: 0.9rem; margin-top: 0.5rem; display: block; /* Make reset block */ width: fit-content; /* Fit content width */ margin-left: auto; margin-right: auto; /* Center */
}
.btn-tool-secondary:hover { background-color: #5a6268; color: white; }

/* Actions Area */
.actions { text-align: center; margin-top: 1rem; border-top: 1px solid #eee; padding-top: 1.5rem; }
.download-btn { padding: 12px 25px; }

/* Status Display */
.status-display { font-size: 0.9em; color: #0056b3; margin-bottom: 1rem; padding: 0.8rem; background-color: #e7f3ff; border: 1px solid #b8daff; border-radius: 4px; text-align: left; line-height: 1.4; }
.status-display.warning { color: #856404; background-color: #fff3cd; border-color: #ffeeba; }

/* Responsive Adjustments */
@media (max-width: 600px) {
    .previews { flex-direction: column; align-items: center; }
    .preview-box { width: 90%; min-width: unset; }
    .img-container { height: 200px; }
    .control-group label { width: 80px; }
    .controls { grid-template-columns: 1fr; } /* Stack sections if using grid */
}