.compressor-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 900px) {
    .compressor-layout {
        flex-direction: row;
        align-items: flex-start;
    }
}

.compressor-sidebar {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .compressor-sidebar {
        width: 300px;
        flex-shrink: 0;
    }
}

.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.drop-icon {
    font-size: 3rem;
    color: #f59e0b;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.drop-zone p {
    color: var(--text-main);
    font-weight: 500;
    margin: 0 0 0.5rem 0;
}

.drop-zone .drop-sub {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.settings-panel {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    transition: opacity 0.3s;
}

.settings-panel.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.format-toggles {
    display: flex;
    gap: 0.5rem;
}

.btn-format {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    font-size: 0.9rem;
}

.btn-format:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.btn-format.active {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.5);
    color: #fbbf24;
}

.btn-format.disabled-btn {
    opacity: 0.3;
    pointer-events: none;
    cursor: not-allowed;
}

input[type="range"] {
    width: 100%;
    accent-color: #f59e0b;
    margin-bottom: 0.5rem;
}

.val-display {
    font-family: 'JetBrains Mono', monospace;
    color: #fbbf24 !important;
}

.setting-hint {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin: 0;
}

/* Preview Area */
.compressor-main {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
}

.preview-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.preview-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.preview-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

@media (min-width: 1200px) {
    .preview-content {
        flex-direction: row;
    }
}

.preview-box {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.preview-header {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.preview-box img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 4px;
    background: repeating-conic-gradient(rgba(255,255,255,0.1) 0% 25%, transparent 0% 50%) 50% / 20px 20px;
}

.size-badge {
    margin-top: 1rem;
    background: rgba(255,255,255,0.1);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.saving-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.grayscale {
    filter: grayscale(100%);
}
