:root {
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --bg: #ffffff;
    --text: #1f2937;
    --border: #e5e7eb;
    --radius: 8px;
    --success: #10b981;
    --danger: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 1rem;
    background: var(--bg);
    color: var(--text);
    display: flex;
    justify-content: center;
}

.opt-container {
    width: 100%;
    max-width: 600px;
    background: white;
}

/* Upload Section */
.drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #f9fafb;
    color: #6b7280;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--primary);
    background: #eff6ff;
    color: var(--primary);
}

.drop-zone .icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.drop-zone h3 {
    margin: 0;
    color: #374151;
}

.drop-zone .sub-text {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    color: #9ca3af;
}

/* Editor Section */
.hidden {
    display: none !important;
}

.preview-area {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

.preview-box {
    flex: 1;
    text-align: center;
    position: relative;
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: var(--radius);
    background: #f9fafb;
}

.badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #6b7280;
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
}

.badge.new {
    background: var(--success);
}

.preview-box img {
    max-width: 100%;
    height: 120px;
    object-fit: contain;
    margin: 5px 0;
    border-radius: 4px;
}

.file-info {
    font-size: 0.8rem;
    color: #4b5563;
    word-break: break-all;
}

.savings {
    font-weight: bold;
    color: var(--success);
    font-size: 0.9rem;
    margin-top: 5px;
}

.divider {
    align-self: center;
    font-size: 1.5rem;
    color: #9ca3af;
}

/* Controls */
.controls {
    background: #f3f4f6;
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.control-group {
    margin-bottom: 15px;
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

input[type="range"] {
    width: 100%;
    margin: 0;
}

select {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
}

/* Actions */
.actions {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s;
}

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

.primary-btn:hover {
    background: var(--primary-hover);
}

.secondary-btn {
    background: #e5e7eb;
    color: #374151;
}

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