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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #28292c 0%, #1a1b1e 100%);
    min-height: 100vh;
    color: #e5e7eb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: #34AF45;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
    color: #9ca3af;
}

.controls {
    background: #1f2937;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    border: 1px solid #374151;
}

.color-section, .pattern-section, .logo-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    border-radius: 8px;
    background: #111827;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 1px solid #374151;
}

.color-section h3, .pattern-section h3, .logo-section h3 {
    font-size: 1.1rem;
    color: #60a5fa;
    margin-bottom: 5px;
    font-weight: 600;
}

input[type="color"] {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: none;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

select {
    padding: 12px;
    border: 2px solid #374151;
    border-radius: 8px;
    font-size: 1rem;
    background: #1f2937;
    color: #e5e7eb;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

select:focus {
    outline: none;
    border-color: #60a5fa;
}

/* Logo Section Styles */
.logo-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.logo-upload {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

input[type="file"] {
    display: none;
}

.file-label {
    padding: 12px 20px;
    background: #34AF45;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(52, 175, 69, 0.3);
}

.file-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 175, 69, 0.4);
    background: #2d9a3d;
}

.logo-position, .logo-size, .logo-opacity {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.logo-position label, .logo-size label, .logo-opacity label {
    font-size: 0.9rem;
    color: #9ca3af;
    font-weight: 500;
}

.intensity-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.intensity-control label {
    font-size: 0.9rem;
    color: #9ca3af;
    font-weight: 500;
}

.intensity-control > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

#patternIntensityValue {
    font-size: 0.9rem;
    color: #9ca3af;
    font-weight: 500;
    min-width: 50px;
    text-align: right;
}

.logo-size, .logo-opacity {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.logo-size > div, .logo-opacity > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #374151;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #60a5fa;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #60a5fa;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

#logoSizeValue, #logoOpacityValue {
    font-size: 0.9rem;
    color: #9ca3af;
    font-weight: 500;
    min-width: 50px;
    text-align: right;
}

.action-buttons {
    grid-column: 1 / -1;
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: #34AF45;
    color: white;
    box-shadow: 0 4px 15px rgba(52, 175, 69, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 175, 69, 0.6);
    background: #2d9a3d;
}

.btn-secondary {
    background: #34AF45;
    color: white;
    box-shadow: 0 4px 15px rgba(52, 175, 69, 0.4);
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 175, 69, 0.6);
    background: #2d9a3d;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.preview-section {
    background: #1f2937;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid #374151;
}

.preview-section h3 {
    margin-bottom: 20px;
    color: #60a5fa;
    font-size: 1.3rem;
}

.preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#wallpaperCanvas {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    max-width: 100%;
    height: auto;
}

.preview-note {
    color: #9ca3af;
    font-size: 0.9rem;
    font-style: italic;
}

.presets {
    background: #1f2937;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid #374151;
}

.presets h3 {
    margin-bottom: 20px;
    color: #60a5fa;
    font-size: 1.3rem;
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.preset-btn {
    padding: 15px 20px;
    border: 2px solid #374151;
    border-radius: 8px;
    background: #111827;
    color: #e5e7eb;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preset-btn:hover {
    border-color: #60a5fa;
    background: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.2);
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .controls {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .preset-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .logo-controls {
        gap: 12px;
    }
} 