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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

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

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

header h1 {
    font-size: 2.5rem;
    color: #e91e63;
    margin-bottom: 10px;
}

header p {
    color: #666;
    font-size: 1.1rem;
}

.upload-section {
    text-align: center;
    margin-bottom: 40px;
}

.upload-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, #e91e63, #f06292);
    color: white;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.upload-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(233, 30, 99, 0.3);
}

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

.canvas-container {
    text-align: center;
    margin-bottom: 30px;
}

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

.filters-section {
    margin-bottom: 30px;
}

.filters-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.filter-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.filter-btn:hover {
    border-color: #e91e63;
    transform: translateY(-2px);
}

.filter-btn.active {
    border-color: #e91e63;
    background: #fce4ec;
}

.filter-preview {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    background-size: cover;
    background-position: center;
    margin-bottom: 5px;
    display: block;
}

.filter-btn span:last-child {
    font-size: 0.85rem;
    color: #666;
}

.adjustments-section {
    margin-bottom: 30px;
}

.adjustments-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333;
}

.adjustment-control {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.adjustment-control label {
    width: 100px;
    font-size: 0.95rem;
    color: #666;
}

.adjustment-control input[type="range"] {
    flex: 1;
    margin: 0 15px;
    height: 5px;
    background: #e0e0e0;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.adjustment-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #e91e63;
    border-radius: 50%;
    cursor: pointer;
}

.adjustment-control input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #e91e63;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.adjustment-control span {
    width: 60px;
    text-align: right;
    font-size: 0.9rem;
    color: #666;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.primary-btn, .secondary-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.primary-btn {
    background: linear-gradient(45deg, #e91e63, #f06292);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

.secondary-btn {
    background: #f5f5f5;
    color: #666;
}

.secondary-btn:hover {
    background: #e0e0e0;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .filter-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }
    
    .filter-preview {
        width: 50px;
        height: 50px;
    }
    
    .adjustment-control {
        flex-wrap: wrap;
    }
    
    .adjustment-control label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .adjustment-control input[type="range"] {
        margin: 0 10px 0 0;
    }
}