* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    padding: 40px;
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
}

h2 {
    color: #555;
    margin-bottom: 20px;
    font-size: 1.8em;
}

h3 {
    color: #666;
    margin: 20px 0 10px 0;
}

.upload-section, .redaction-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px dashed #dee2e6;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
}

.form-group input[type="file"] {
    width: 100%;
    padding: 15px;
    border: 2px dashed #667eea;
    border-radius: 10px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-group input[type="file"]:hover {
    border-color: #764ba2;
    background: #fff;
}

.form-group select,
.form-group input[type="color"],
.form-group input[type="range"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
}

.form-group input[type="range"] {
    padding: 0;
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    margin-right: 10px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.btn-redact {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.btn-secondary {
    background: #6c757d;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    border: 3px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    cursor: crosshair;
}

#redactImage {
    display: block;
    max-width: 100%;
    height: auto;
}

.selection-box {
    position: absolute;
    border: 2px solid #f00;
    background: rgba(255, 0, 0, 0.1);
    display: none;
}

.controls {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.instructions {
    margin-top: 30px;
    padding: 20px;
    background: #e9f7fe;
    border-radius: 10px;
    border-left: 5px solid #2196f3;
}

.instructions ol {
    margin-left: 20px;
    color: #555;
}

.instructions li {
    margin-bottom: 10px;
}

#intensityValue {
    display: inline-block;
    min-width: 30px;
    text-align: center;
    font-weight: bold;
    color: #667eea;
}

.result {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: #d4edda;
    border-radius: 10px;
    border: 2px solid #c3e6cb;
}

.result img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}