/* ============================================
   TOOLBOX PRO - GLOBAL STYLES
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --bg-elevated: #161616;
    
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.15);
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.4);
    
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --accent-dark: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --accent-subtle: rgba(59, 130, 246, 0.1);
    
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.5);
    --success-subtle: rgba(16, 185, 129, 0.1);
    
    --orange: #f59e0b;
    --orange-glow: rgba(245, 158, 11, 0.5);
    --orange-subtle: rgba(245, 158, 11, 0.1);
    
    --purple: #8b5cf6;
    --purple-glow: rgba(139, 92, 246, 0.5);
    --purple-subtle: rgba(139, 92, 246, 0.1);
    
    --cyan: #06b6d4;
    --cyan-glow: rgba(6, 182, 212, 0.5);
    --cyan-subtle: rgba(6, 182, 212, 0.1);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html { background: var(--bg-primary); }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Background Effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(139, 92, 246, 0.1), transparent),
        radial-gradient(ellipse 50% 30% at 0% 100%, rgba(16, 185, 129, 0.08), transparent);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.app {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-subtle);
    padding: 28px 16px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px 12px;
    margin-bottom: 40px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-section { margin-bottom: 28px; }

.nav-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 0 14px;
    margin-bottom: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    color: var(--text-secondary);
    margin-bottom: 4px;
    position: relative;
    border: 1px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--accent-subtle) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--accent-light);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--purple) 100%);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 12px var(--accent-glow);
}

.nav-icon { 
    width: 20px; 
    height: 20px; 
    opacity: 0.6;
    transition: all var(--transition-normal);
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon { opacity: 1; }

.nav-title { font-size: 14px; font-weight: 500; }

/* ============================================
   MAIN CONTENT
   ============================================ */
.main {
    flex: 1;
    margin-left: 280px;
    padding: 48px 56px;
    max-width: 920px;
    position: relative;
}

.page-header { margin-bottom: 40px; }

.page-title {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.card:hover {
    border-color: var(--border-medium);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 20px;
}

/* ============================================
   SPEED CONTROL
   ============================================ */
.speed-display { text-align: center; margin-bottom: 32px; }

.speed-value {
    font-size: 80px;
    font-weight: 700;
    letter-spacing: -4px;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--purple) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px var(--accent-glow));
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { filter: drop-shadow(0 0 20px var(--accent-glow)); }
    50% { filter: drop-shadow(0 0 40px var(--accent-glow)); }
}

.speed-label {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.speed-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-elevated);
    border-radius: 3px;
    outline: none;
    margin-bottom: 24px;
}

.speed-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 20px var(--accent-glow), 0 4px 12px rgba(0,0,0,0.3), inset 0 1px 1px rgba(255,255,255,0.3);
    transition: all var(--transition-fast);
    border: 2px solid rgba(255,255,255,0.2);
}

.speed-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 30px var(--accent-glow), 0 6px 16px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255,255,255,0.3);
}

.speed-presets { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.speed-preset {
    padding: 10px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.speed-preset:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--border-medium);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.speed-preset.active {
    background: linear-gradient(135deg, var(--accent-subtle) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: var(--accent);
    color: var(--accent-light);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2), inset 0 1px 1px rgba(255,255,255,0.1);
}

/* ============================================
   DURATION CARD
   ============================================ */
.duration-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.02) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    padding: 20px;
    display: none;
    margin-top: 20px;
}

.duration-card.visible { display: block; }

.duration-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.duration-row:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,0.06); }

.duration-label { color: var(--text-secondary); font-size: 14px; }

.duration-value { font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }

.duration-value.new { color: var(--success); text-shadow: 0 0 20px var(--success-glow); }

/* ============================================
   UPLOAD ZONE
   ============================================ */
.upload-zone {
    border: 2px dashed var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 56px 32px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.01) 0%, transparent 100%);
}

.upload-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, var(--accent-subtle) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.upload-zone:hover {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, transparent 100%);
}

.upload-zone:hover::before { opacity: 1; }

.upload-zone.dragover {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--accent-subtle) 0%, rgba(139, 92, 246, 0.05) 100%);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.2), inset 0 0 40px rgba(59, 130, 246, 0.05);
    transform: scale(1.01);
}

.upload-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    color: var(--text-tertiary);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
}

.upload-zone:hover .upload-icon {
    color: var(--accent);
    transform: translateY(-4px);
}

.upload-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; position: relative; z-index: 1; }

.upload-hint { font-size: 14px; color: var(--text-tertiary); position: relative; z-index: 1; }

/* ============================================
   FILE LIST
   ============================================ */
.file-list { margin-top: 24px; }

.file-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.file-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.file-item:hover {
    border-color: var(--border-medium);
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    transform: translateX(4px);
}

.file-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-subtle) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    flex-shrink: 0;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.file-icon.orange { 
    background: linear-gradient(135deg, var(--orange-subtle) 0%, rgba(245, 158, 11, 0.05) 100%);
    color: var(--orange);
    border-color: rgba(245, 158, 11, 0.2);
}

.file-icon.cyan { 
    background: linear-gradient(135deg, var(--cyan-subtle) 0%, rgba(6, 182, 212, 0.05) 100%);
    color: var(--cyan);
    border-color: rgba(6, 182, 212, 0.2);
}

.file-info { flex: 1; min-width: 0; }

.file-name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; font-variant-numeric: tabular-nums; }

.file-progress { width: 140px; }

.progress-bar { 
    height: 4px; 
    background: var(--bg-elevated); 
    border-radius: 2px; 
    overflow: hidden;
}

.progress-fill { 
    height: 100%; 
    background: linear-gradient(90deg, var(--accent) 0%, var(--purple) 100%);
    border-radius: 2px; 
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progress-shine 1.5s infinite;
}

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

.progress-fill.orange { background: linear-gradient(90deg, var(--orange) 0%, #f97316 100%); }
.progress-fill.cyan { background: linear-gradient(90deg, var(--cyan) 0%, #0891b2 100%); }

.file-status { 
    font-size: 12px; 
    color: var(--text-tertiary); 
    text-align: right; 
    min-width: 90px; 
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.file-status.done { color: var(--success); text-shadow: 0 0 10px var(--success-glow); }

.file-actions { display: flex; gap: 8px; }

.file-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: rgba(255,255,255,0.02);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.file-btn:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--border-medium);
    color: var(--text-primary);
    transform: scale(1.05);
}

.file-btn.download {
    background: linear-gradient(135deg, var(--success-subtle) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.file-btn.download:hover {
    background: var(--success);
    border-color: var(--success);
    color: white;
    box-shadow: 0 0 20px var(--success-glow);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4), inset 0 1px 1px rgba(255,255,255,0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5), inset 0 1px 1px rgba(255,255,255,0.2);
}

.btn-primary:hover::before { left: 100%; }

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

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: rgba(255,255,255,0.03);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

/* ============================================
   ACTION BAR
   ============================================ */
.action-bar {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-top: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.action-bar.visible { display: flex; }

.action-count { font-size: 14px; color: var(--text-secondary); }

.action-count strong { color: var(--text-primary); font-weight: 600; font-variant-numeric: tabular-nums; }

.action-buttons { display: flex; gap: 12px; }

/* ============================================
   SUMMARY CARD
   ============================================ */
.summary-card {
    display: none;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.02) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-top: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    animation: rotate-bg 10s linear infinite;
}

@keyframes rotate-bg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.summary-card.visible { display: block; }

.summary-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    box-shadow: 0 0 40px var(--success-glow), 0 8px 24px rgba(16, 185, 129, 0.4);
    position: relative;
    z-index: 1;
}

.summary-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; position: relative; z-index: 1; }

.summary-stats { display: flex; justify-content: center; gap: 48px; margin: 28px 0; position: relative; z-index: 1; }

.summary-stat { text-align: center; }

.summary-stat-value { font-size: 36px; font-weight: 700; font-variant-numeric: tabular-nums; }

.summary-stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ============================================
   SIZE GRID (Video Tool)
   ============================================ */
.size-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.size-btn {
    padding: 18px 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.size-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

.size-btn:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--border-medium);
    transform: translateY(-2px);
}

.size-btn.active {
    background: linear-gradient(135deg, var(--orange-subtle) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-color: var(--orange);
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.2), inset 0 1px 1px rgba(255,255,255,0.1);
}

.size-btn-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--text-primary); }

.size-btn-dims { font-size: 12px; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }

.size-btn.active .size-btn-name,
.size-btn.active .size-btn-dims { color: var(--orange); }

/* Color Picker */
.color-picker-wrap { display: flex; align-items: center; gap: 20px; }

.color-picker {
    width: 64px;
    height: 64px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    background: transparent;
    padding: 0;
    overflow: hidden;
}

.color-picker::-webkit-color-swatch-wrapper { padding: 0; }

.color-picker::-webkit-color-swatch {
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-md);
}

.color-value { 
    font-size: 16px; 
    color: var(--text-secondary); 
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    background: rgba(255,255,255,0.03);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

/* ============================================
   LOTE GRID (Redistribuidor)
   ============================================ */
.lote-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lote-btn {
    padding: 12px 24px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.lote-btn:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--border-medium);
    color: var(--text-primary);
}

.lote-btn.active {
    background: linear-gradient(135deg, var(--cyan-subtle) 0%, rgba(6, 182, 212, 0.05) 100%);
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

/* Input Field */
.input-field {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all var(--transition-normal);
}

.input-field:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255,255,255,0.04);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.input-field::placeholder { color: var(--text-tertiary); }

/* Preview Card */
.preview-card {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(6, 182, 212, 0.02) 100%);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: var(--radius-md);
    padding: 24px;
    display: none;
}

.preview-card.visible { display: block; }

.preview-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.preview-row:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,0.06); }

.preview-label { color: var(--text-secondary); }

.preview-value { font-weight: 600; color: var(--cyan); }

/* ============================================
   STATUS BAR
   ============================================ */
.status-bar {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.9) 0%, rgba(10, 10, 10, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--success-glow);
}

.status-dot.loading {
    background: var(--orange);
    box-shadow: 0 0 12px var(--orange-glow);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

/* ============================================
   UTILITIES
   ============================================ */
.spinner { animation: spin 0.8s linear infinite; }

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

.hidden { display: none !important; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .main { margin-left: 0; padding: 24px 20px; }
    .page-title { font-size: 32px; }
    .size-grid { grid-template-columns: repeat(2, 1fr); }
    .speed-value { font-size: 60px; }
    .summary-stats { gap: 24px; }
    .summary-stat-value { font-size: 28px; }
}
