.wrapper-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 30px;
}

h1 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
}

header {
    background: var(--primary);
    color: white;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 24px;
}

.logo i {
    font-size: 28px;
}

.info-text {
    font-size: 14px;
    opacity: 0.9;
    max-width: 600px;
}

.app-content {
    display: flex;
    flex-wrap: wrap;
    padding: 32px;
}

.upload-section {
    flex: 1;
    min-width: 320px;
    padding: 16px;
}

.result-section {
    flex: 1;
    min-width: 320px;
    padding: 16px;
    border-left: 1px solid #EEE;
}

.section-title {
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-area {
    border: 2px dashed var(--gray);
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    margin-bottom: 24px;
    transition: all 0.3s;
    background-color: var(--light);
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    background-color: #F3E5F5;
    border-color: var(--primary);
}

.upload-area p {
    margin: 12px 0;
    color: var(--dark);
}

.upload-icon {
    font-size: 64px;
    color: var(--primary);
    margin-bottom: 16px;
}

/* .btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 8px;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(126, 87, 194, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    background: var(--gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
} */

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(126, 87, 194, 0.1);
}

.btn-success {
    background: var(--success);
}

.btn-success:hover {
    background: #4CAF50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.controls {
    margin: 24px 0;
}

.control-group {
    margin-bottom: 16px;
    background: var(--light);
    padding: 16px;
    border-radius: 12px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: #E5E7EB;
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.preview-container {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    background-color: white;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.preview-container img {
    max-width: 100%;
    max-height: 300px;
    display: block;
    border-radius: 8px;
}

.image-info {
    margin-top: 12px;
    font-size: 14px;
    color: var(--dark);
    text-align: center;
    background: var(--light);
    padding: 12px;
    border-radius: 8px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
    gap: 12px;
}

.hidden {
    display: none;
}

.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateX(200%);
    transition: transform 0.3s ease-out;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: var(--success);
}

.notification.error {
    background: var(--error);
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.watermark {
    text-align: center;
    padding: 16px;
    color: var(--gray);
    font-size: 14px;
    border-top: 1px solid #EEE;
}

.quality-options {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.quality-btn {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--gray);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.quality-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: var(--dark);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    font-weight: normal;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 968px) {
    .app-content {
        flex-direction: column;
    }

    .result-section {
        border-left: none;
        border-top: 1px solid #EEE;
        margin-top: 24px;
        padding-top: 32px;
    }

    header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}