:root {
    --primary: #6a11cb;
    --secondary: #2575fc;
    --accent: #ff5e62;
    --dark: #2d3436;
    --light: #f8f9fa;
}

body {
    /*background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);*/
    /*min-height: 100vh;*/
    /*padding: 20px 0;*/
    /*font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
}

.header {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff5e62, #ff9966);
}

.card {
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: none;
    margin-bottom: 25px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(255, 255, 255, 0.95);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.card-header {
    background: linear-gradient(90deg, rgba(106,17,203,0.1), rgba(37,117,252,0.1));
    color: var(--dark);
    font-weight: 700;
    border: none;
    padding: 15px 20px;
    font-size: 1.1rem;
}

.preview-container {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 3px dashed #dce4ec;
    transition: all 0.3s ease;
}

.preview-container.drag-over {
    background-color: #e3f2fd;
    border-color: var(--secondary);
    border-style: solid;
}

.preview-img {
    max-width: 100%;
    max-height: 420px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.filter-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 15px 0;
}

.filter-item {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.filter-item:hover, .filter-item.active {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.filter-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.filter-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    text-align: center;
    padding: 5px;
    font-size: 12px;
    font-weight: 600;
}

.slider-container {
    padding: 12px 0;
    position: relative;
}

.slider-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
}

.slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 15px;
    color: var(--dark);
    font-weight: 500;
}

.btn-group-custom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.btn-custom {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 15px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 130px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(106, 17, 203, 0.35);
}

.btn-custom-outline {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.btn-custom-outline:hover {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 8px 20px rgba(106, 17, 203, 0.35);
}

.footer {
    text-align: center;
    margin-top: 40px;
    color: var(--dark);
    font-size: 14px;
    opacity: 0.8;
}

.no-image-placeholder {
    text-align: center;
    color: #777;
    padding: 40px 0;
    z-index: 1;
}

.no-image-placeholder i {
    font-size: 70px;
    margin-bottom: 20px;
    color: var(--secondary);
    opacity: 0.7;
}

.drag-text {
    font-size: 18px;
    margin-top: 15px;
    color: var(--primary);
    font-weight: 600;
}

.range-slider {
    width: 100%;
    height: 10px;
    -webkit-appearance: none;
    background: linear-gradient(90deg, #e0e0e0, var(--secondary));
    border-radius: 5px;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary);
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 5px 12px rgba(0,0,0,0.3);
}

.filter-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(37, 117, 252, 0.2);
    position: relative;
}

.filter-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--secondary);
}

.upload-btn {
    position: relative;
    overflow: hidden;
}

.upload-btn input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.progress-container {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 15px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.4s ease;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    pointer-events: none;
}

.preview-container:hover .preview-overlay {
    opacity: 1;
}

.feature-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(90deg, #ff5e62, #ff9966);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.canvas-container {
    display: none;
}
