/* ============================================
   ADVANCED IMAGE RESIZER — COMPLETE STYLESHEET
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #7C3AED;
    --primary-hover: #6D28D9;
    --primary-glow: rgba(124, 58, 237, 0.35);
    --accent: #06B6D4;
    --accent-glow: rgba(6, 182, 212, 0.3);
    --success: #10B981;
    --success-glow: rgba(16, 185, 129, 0.3);
    --warning: #F59E0B;
    --danger: #EF4444;
    --bg-body: #0B0D1A;
    --bg-panel: #111328;
    --bg-card: #181B32;
    --bg-input: #1E2140;
    --bg-hover: #252850;
    --border: rgba(124, 58, 237, 0.18);
    --border-hover: rgba(124, 58, 237, 0.45);
    --text-white: #F1F0F9;
    --text-light: #C4C1DB;
    --text-muted: #7B789A;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-xs: 5px;
    --transition: 0.25s cubic-bezier(.4,0,.2,1);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.35);
    --shadow-lg: 0 16px 56px rgba(0,0,0,0.45);
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-white);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === AMBIENT BACKGROUND === */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.ambient-bg .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    animation: blobDrift 25s ease-in-out infinite alternate;
}
.ambient-bg .blob:nth-child(1) {
    width: 600px; height: 600px;
    background: var(--primary);
    top: -150px; left: -100px;
}
.ambient-bg .blob:nth-child(2) {
    width: 500px; height: 500px;
    background: var(--accent);
    bottom: -120px; right: -80px;
    animation-delay: -8s;
}
.ambient-bg .blob:nth-child(3) {
    width: 350px; height: 350px;
    background: #EC4899;
    top: 40%; left: 55%;
    animation-delay: -16s;
}
@keyframes blobDrift {
    0%   { transform: translate(0,0) scale(1); }
    33%  { transform: translate(50px,-70px) scale(1.08); }
    66%  { transform: translate(-40px,50px) scale(0.93); }
    100% { transform: translate(30px,30px) scale(1.04); }
}

/* === APP SHELL === */
.app-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* === HEADER === */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    height: 56px;
    background: rgba(17,19,40,0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 14px var(--primary-glow);
}
.brand-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.brand-name em {
    font-style: normal;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* === MAIN LAYOUT === */
.main-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

/* === UPLOAD VIEW === */
.upload-view {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.upload-view.hidden { display: none; }

.dropzone {
    width: 100%;
    max-width: 700px;
    padding: 56px 40px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    background: rgba(24,27,50,0.55);
    backdrop-filter: blur(12px);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.dropzone::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-glow), var(--accent-glow));
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}
.dropzone:hover,
.dropzone.drag-over {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.dropzone:hover::after,
.dropzone.drag-over::after {
    opacity: 1;
}
.dropzone-icon {
    width: 84px; height: 84px;
    margin: 0 auto 22px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    box-shadow: 0 8px 32px var(--primary-glow);
    position: relative;
    z-index: 1;
    animation: iconBounce 3s ease-in-out infinite;
}
@keyframes iconBounce {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.dropzone h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}
.dropzone p {
    color: var(--text-muted);
    font-size: 14px;
    position: relative;
    z-index: 1;
}
.dropzone .choose-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px var(--primary-glow);
    position: relative;
    z-index: 1;
}
.dropzone .choose-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--primary-glow);
}
.dropzone .formats-note {
    margin-top: 14px;
    font-size: 12px;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* === EDITOR VIEW === */
.editor-view {
    flex: 1;
    display: none;
    overflow: hidden;
}
.editor-view.active {
    display: flex;
}

/* === SIDEBAR === */
.sidebar {
    width: 340px;
    min-width: 300px;
    background: rgba(17,19,40,0.9);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}
.sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
}
.sidebar-scroll::-webkit-scrollbar { width: 5px; }
.sidebar-scroll::-webkit-scrollbar-track { background: transparent; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* === SIDEBAR SECTIONS === */
.section {
    margin-bottom: 20px;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
}
.section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 7px;
}
.section-title .icon {
    font-size: 14px;
}
.section-toggle {
    font-size: 11px;
    color: var(--text-muted);
    transition: var(--transition);
}
.section-body {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* === FILE INFO CARD === */
.file-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
}
.file-thumb {
    width: 52px; height: 52px;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    overflow: hidden;
    flex-shrink: 0;
}
.file-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.file-meta {
    flex: 1;
    min-width: 0;
}
.file-meta h4 {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.file-meta-row {
    display: flex;
    gap: 12px;
    margin-top: 3px;
}
.file-meta span {
    font-size: 11px;
    color: var(--text-muted);
}

/* === FORM ELEMENTS === */
.form-group {
    margin-bottom: 14px;
}
.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 6px;
}
.form-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}
.form-col {
    flex: 1;
}

.input-wrap {
    position: relative;
}
.input-wrap input,
.input-wrap select {
    width: 100%;
    padding: 9px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-size: 14px;
    font-family: var(--font);
    outline: none;
    transition: var(--transition);
}
.input-wrap input:focus,
.input-wrap select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.input-wrap .unit {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--text-muted);
    pointer-events: none;
    font-weight: 600;
}
.input-wrap select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237B789A' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.input-wrap select option {
    background: var(--bg-card);
    color: var(--text-white);
}

/* Lock Aspect Ratio Button */
.lock-btn {
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    flex-shrink: 0;
}
.lock-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 10px var(--primary-glow);
}
.lock-btn:hover {
    border-color: var(--primary);
}

/* === PRESET GRID === */
.preset-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.preset-btn {
    padding: 8px 4px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-light);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    line-height: 1.3;
    font-family: var(--font);
}
.preset-btn:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
    color: #fff;
}
.preset-btn.active {
    border-color: var(--primary);
    background: rgba(124,58,237,0.15);
    color: var(--primary);
}
.preset-btn .preset-label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* === PERCENTAGE SLIDER === */
.slider-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.slider-group input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    outline: none;
}
.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px; height: 18px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px var(--primary-glow);
}
.slider-group input[type="range"]::-moz-range-thumb {
    width: 18px; height: 18px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    cursor: pointer;
    border: none;
}
.slider-val {
    min-width: 48px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}

/* === QUALITY SECTION === */
.quality-meter {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}
.quality-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
}
.quality-dot.green { background: var(--success); }
.quality-dot.yellow { background: var(--warning); }
.quality-dot.red { background: var(--danger); }
.quality-label {
    font-size: 11px;
    color: var(--text-muted);
}

/* === OUTPUT FORMAT PILLS === */
.format-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.format-pill {
    padding: 7px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}
.format-pill:hover {
    border-color: var(--primary);
}
.format-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 10px var(--primary-glow);
}

/* === SIDEBAR FOOTER === */
.sidebar-footer {
    padding: 14px 18px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--primary-glow);
}
.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: #fff;
    box-shadow: 0 4px 14px var(--success-glow);
}
.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--success-glow);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-light);
}
.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(124,58,237,0.08);
    color: #fff;
}
.btn-sm {
    padding: 7px 14px;
    font-size: 12px;
}
.btn-icon-only {
    width: 38px; height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
}
.btn-icon-only:hover {
    border-color: var(--primary);
    color: #fff;
}
.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}
.btn-full { width: 100%; }

/* === CANVAS PREVIEW AREA === */
.preview-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-body);
}

/* Preview Toolbar */
.preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    height: 46px;
    background: rgba(17,19,40,0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.preview-toolbar-left,
.preview-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.preview-toolbar-center {
    display: flex;
    align-items: center;
    gap: 6px;
}
.zoom-display {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 42px;
    text-align: center;
}
.dimension-badge {
    padding: 4px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
}
.size-estimate {
    padding: 4px 12px;
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    color: var(--success);
}

/* Canvas Container */
.canvas-container {
    flex: 1;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}
.canvas-container::-webkit-scrollbar { width: 8px; height: 8px; }
.canvas-container::-webkit-scrollbar-track { background: transparent; }
.canvas-container::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* Checkerboard pattern for transparency */
.canvas-wrapper {
    position: relative;
    box-shadow: var(--shadow-lg);
    border-radius: 4px;
    overflow: hidden;
    line-height: 0;
    background-image:
        linear-gradient(45deg, #1a1a2e 25%, transparent 25%),
        linear-gradient(-45deg, #1a1a2e 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #1a1a2e 75%),
        linear-gradient(-45deg, transparent 75%, #1a1a2e 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-color: #12122a;
}
.canvas-wrapper canvas {
    display: block;
    max-width: none;
}

/* === COMPARISON MODE === */
.compare-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    cursor: ew-resize;
    z-index: 10;
    box-shadow: 0 0 12px var(--primary-glow);
}
.compare-slider::after {
    content: '⟷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    box-shadow: var(--shadow-sm);
}

/* === TOAST === */
.toast-stack {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast {
    padding: 12px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    animation: toastSlideIn 0.35s ease;
    max-width: 380px;
    pointer-events: auto;
}
.toast.ok   { border-left: 3px solid var(--success); }
.toast.err  { border-left: 3px solid var(--danger); }
.toast.warn { border-left: 3px solid var(--warning); }
.toast.info { border-left: 3px solid var(--primary); }
.toast.exit {
    animation: toastSlideOut 0.3s ease forwards;
}
@keyframes toastSlideIn {
    from { transform: translateX(110%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}
@keyframes toastSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to   { transform: translateX(110%); opacity: 0; }
}

/* === BATCH MODE === */
.batch-list {
    max-height: 160px;
    overflow-y: auto;
    margin-top: 8px;
}
.batch-list::-webkit-scrollbar { width: 4px; }
.batch-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.batch-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-xs);
    transition: var(--transition);
}
.batch-item:hover { background: var(--bg-hover); }
.batch-item-thumb {
    width: 36px; height: 36px;
    border-radius: var(--radius-xs);
    overflow: hidden;
    background: var(--bg-input);
    flex-shrink: 0;
}
.batch-item-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.batch-item-info {
    flex: 1;
    min-width: 0;
}
.batch-item-info .name {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.batch-item-info .dims {
    font-size: 10px;
    color: var(--text-muted);
}
.batch-item-status {
    font-size: 14px;
}
.batch-item.active {
    background: rgba(124,58,237,0.1);
    border-left: 2px solid var(--primary);
}
.batch-item .remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 2px;
    transition: var(--transition);
}
.batch-item .remove-btn:hover {
    color: var(--danger);
}

/* === PROGRESS === */
.progress-bar-wrap {
    width: 100%;
    height: 4px;
    background: var(--bg-input);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
}
.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* === CROP OVERLAY === */
.crop-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: none;
    cursor: crosshair;
}
.crop-overlay.active { display: block; }
.crop-selection {
    position: absolute;
    border: 2px dashed var(--accent);
    background: rgba(6,182,212,0.08);
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.45);
}
.crop-handle {
    position: absolute;
    width: 10px; height: 10px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid #fff;
}

/* === FOOTER === */
.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 24px;
    height: 36px;
    background: rgba(17,19,40,0.8);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    font-size: 11px;
    color: var(--text-muted);
}
.footer-stats {
    display: flex;
    gap: 16px;
}
.footer-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* === SPINNER === */
.spinner {
    width: 22px; height: 22px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .main-body { flex-direction: column; }
    .sidebar {
        width: 100%;
        min-width: unset;
        max-height: 45vh;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .preview-area { min-height: 200px; }
    .preset-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .app-header { padding: 8px 14px; }
    .brand-name { font-size: 14px; }
    .sidebar-scroll { padding: 12px; }
    .dropzone { padding: 32px 20px; }
    .dropzone h2 { font-size: 18px; }
    .dropzone-icon { width: 64px; height: 64px; font-size: 28px; }
    .preview-toolbar { padding: 6px 12px; flex-wrap: wrap; gap: 4px; }
    .canvas-container { padding: 12px; }
}
