:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --dark-color: #2b2d42;
    --light-color: #f8f9fa;
    --success-color: #4cc9f0;
    --warning-color: #f72585;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7fa;
    color: var(--dark-color);
    line-height: 1.6;
    height: 100vh;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.app-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.app-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.app-header p {
    color: #666;
    font-size: 1.1rem;
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.upload-section {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
}

.image-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    height: 400px;
}

.drop-area {
    border: 2px dashed #ccc;
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.drop-area i {
    font-size: 3rem;
    color: var(--primary-color);
}

.drop-area p {
    font-size: 1.2rem;
    color: #666;
}

.drop-area span {
    color: #999;
}

.drop-area.active {
    border-color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.05);
}

.preview-container {
    position: relative;
    display: none;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: var(--border-radius);
    background-color: #f0f0f0;
}

#previewImage, #canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.controls-section {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
}

.filter-controls h2 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.filter-sliders {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slider-group label {
    font-weight: 500;
    color: #555;
}

.slider-group input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: #e0e0e0;
    border-radius: 4px;
    outline: none;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.slider-group input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.slider-group span {
    font-size: 0.9rem;
    color: #777;
    text-align: right;
}

.preset-filters h3 {
    margin: 20px 0 15px;
    color: #555;
}

.filter-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 15px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.filter-btn:hover {
    background-color: #e0e0e0;
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #555;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.app-footer {
    text-align: center;
    margin-top: 10px;
    padding: 20px 0;
    color: #777;
    font-size: 0.9rem;
}

.app-footer i {
    color: var(--warning-color);
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--dark-color);
    color: white;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 1000;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.preview-container {
    position: relative;
    display: none;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: var(--border-radius);
    background-color: #f0f0f0;
}

#previewImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter 0.2s ease;
}

#canvas {
    display: none; 
}

@media (max-width: 768px) {
    .app-header h1 {
        font-size: 2rem;
    }
    
    .filter-sliders {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        justify-content: center;
    }
}