/* Modern Reset and Base Styles */
:root {
    /* Modern Dark Color Palette 2024 */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-surface: #30363d;
    --bg-hover: #484f58;
    
    /* Text Colors */
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-tertiary: #7d8590;
    
    /* Accent Colors */
    --accent-primary: #58a6ff;
    --accent-secondary: #1f6feb;
    --accent-success: #3fb950;
    --accent-warning: #f85149;
    
    /* Border Colors */
    --border-primary: #30363d;
    --border-secondary: #21262d;
    --border-muted: #484f58;
    
    /* Interactive States */
    --interactive-hover: rgba(255, 255, 255, 0.08);
    --interactive-active: rgba(255, 255, 255, 0.12);
    
    /* Modern Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    
    /* Modern Typography Scale */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    
    /* Modern Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Modern Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
    user-select: none;
    touch-action: none;
    font-size: var(--font-size-base);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Modern Application Bar */
.app-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1000;
}

.app-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.workspace-controls {
    display: flex;
    gap: 4px;
}

.workspace-btn, .minimize-btn, .maximize-btn, .close-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-size-xs);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.workspace-btn:hover, .minimize-btn:hover, .maximize-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-muted);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.close-btn:hover {
    background: var(--accent-warning);
    border-color: var(--accent-warning);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Modern Application Container */
.app-container {
    display: grid;
    grid-template-areas: 
        "tools options options"
        "tools canvas properties";
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto 1fr;
    height: calc(100vh - 72px);
    gap: 1px;
    background: var(--border-primary);
}

/* Modern Tools Panel */
.tools-panel {
    grid-area: tools;
    width: 64px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-primary);
    padding: var(--space-md) var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.tool-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tool-btn {
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tool-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-muted);
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-md);
}

.tool-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: var(--accent-secondary);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.tool-btn.active .tool-icon {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.tool-icon {
    font-size: 20px;
    color: var(--text-primary);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

/* Color Section */
.color-section {
    margin-top: auto;
    padding-top: 12px;
}

.color-swatches {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 0 auto;
}

.color-main, .color-secondary {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid #555555;
    cursor: pointer;
}

.color-main {
    top: 0;
    left: 0;
    z-index: 2;
}

.color-secondary {
    bottom: 0;
    right: 0;
    z-index: 1;
}

/* Modern Options Bar */
.options-bar {
    grid-area: options;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    height: 52px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 20;
}

.tool-options {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.tool-options label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
    margin-right: var(--space-xs);
}

.tool-options input[type="range"] {
    width: 100px;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    outline: none;
    accent-color: var(--accent-primary);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-options input[type="range"]::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-options input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.tool-options span {
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    min-width: 48px;
    font-weight: 600;
    background: var(--bg-tertiary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-primary);
    text-align: center;
}

.tool-options button {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: var(--font-size-base);
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tool-options button:hover {
    background: var(--bg-hover);
    border-color: var(--border-muted);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.tool-options button:active {
    transform: translateY(0);
    box-shadow: inset var(--shadow-sm);
}

/* Modern Main Content */
.main-content {
    grid-area: canvas;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.canvas-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: auto;
    padding: var(--space-xl);
    min-width: 0;
    background: radial-gradient(circle at center, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

#main-canvas {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-lg);
    cursor: crosshair;
    box-shadow: var(--shadow-xl), 0 0 40px rgba(88, 166, 255, 0.1);
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

#main-canvas:hover {
    box-shadow: var(--shadow-xl), 0 0 60px rgba(88, 166, 255, 0.15);
    transform: scale(1.002);
}

.canvas-info {
    position: absolute;
    bottom: var(--space-sm);
    left: var(--space-sm);
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    display: flex;
    gap: var(--space-md);
    background: var(--bg-tertiary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-weight: 500;
}

/* Modern Properties Panel */
.properties-panel {
    grid-area: properties;
    width: 320px;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-primary);
    padding: var(--space-md);
    overflow-y: auto;
    min-width: 280px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 10;
}

.panel-section {
    margin-bottom: var(--space-lg);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.panel-section:hover {
    border-color: var(--border-muted);
    box-shadow: var(--shadow-sm);
}

.panel-section h3 {
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-tertiary));
    border-bottom: 1px solid var(--border-primary);
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    position: relative;
}

.panel-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
    opacity: 0.6;
}

.layers-list, .history-list {
    padding: var(--space-sm);
}

.layer-item, .history-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    font-weight: 500;
}

.layer-item:hover, .history-item:hover {
    background: var(--interactive-hover);
    border-color: var(--border-muted);
    transform: translateX(4px);
}

.layer-item.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-color: var(--accent-secondary);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.layer-item.active .layer-visibility,
.layer-item.active .layer-name {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.layer-visibility {
    cursor: pointer;
}

.color-palette {
    padding: var(--space-sm);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}

.palette-color {
    width: 32px;
    height: 32px;
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.palette-color:hover {
    transform: scale(1.15) translateY(-2px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md), 0 0 20px rgba(88, 166, 255, 0.3);
    z-index: 10;
}

.palette-color:active {
    transform: scale(1.05);
    transition: transform 0.1s;
}

/* Mobile Zoom Controls */
.mobile-zoom-controls {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    margin-left: var(--space-md);
}

.mobile-zoom-controls button {
    background: var(--accent-primary);
    border: 1px solid var(--accent-secondary);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 50px;
    height: 40px;
    box-shadow: var(--shadow-sm);
}

.mobile-zoom-controls button:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.mobile-zoom-controls button:active {
    transform: translateY(0);
    box-shadow: inset var(--shadow-sm);
}

/* Modern Status Bar */
.status-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    padding: var(--space-xs) var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 32px;
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-weight: 500;
    position: relative;
    z-index: 50;
}

/* Modern Responsive Design - Mobile First Approach */

/* Tablet Landscape */
@media (max-width: 1024px) {
    .properties-panel {
        width: 280px;
        min-width: 260px;
    }
    
    .tools-panel {
        width: 60px;
    }
    
    .tool-btn {
        width: 44px;
        height: 44px;
    }
    
    .canvas-container {
        padding: var(--space-lg);
    }
    
    .tool-options {
        gap: var(--space-md);
    }
}

/* Tablet Portrait - Modern Mobile Layout */
@media (max-width: 768px), (pointer: coarse) {
    :root {
        --space-xs: 0.125rem;
        --space-sm: 0.25rem;
        --space-md: 0.5rem;
        --space-lg: 0.75rem;
        --space-xl: 1rem;
    }
    
    .app-container {
        display: grid;
        grid-template-areas: 
            "tools tools tools"
            "options options options"
            "canvas canvas canvas"
            "properties properties properties";
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr auto;
        height: calc(100vh - 48px);
    }
    
    .tools-panel {
        grid-area: tools;
        width: 100%;
        height: 64px;
        flex-direction: row;
        padding: var(--space-sm) var(--space-md);
        overflow-x: auto;
        overflow-y: hidden;
        gap: var(--space-md);
        justify-content: flex-start;
        align-items: center;
        background: var(--bg-secondary);
        border-right: none;
        border-bottom: 1px solid var(--border-primary);
        box-shadow: var(--shadow-md);
    }
    
    .tool-group {
        flex-direction: row;
        gap: var(--space-sm);
        flex-shrink: 0;
    }
    
    .tool-btn {
        width: 52px;
        height: 52px;
        flex-shrink: 0;
    }
    
    .options-bar {
        grid-area: options;
        height: auto;
        min-height: 56px;
        padding: var(--space-sm) var(--space-md);
        overflow-x: auto;
    }
    
    .tool-options {
        flex-wrap: nowrap;
        gap: var(--space-lg);
        min-width: max-content;
    }
    
    .main-content {
        grid-area: canvas;
        min-height: 0;
    }
    
    .canvas-container {
        padding: var(--space-md);
    }
    
    .properties-panel {
        grid-area: properties;
        width: 100%;
        max-height: 240px;
        border-left: none;
        border-top: 1px solid var(--border-primary);
        background: var(--bg-secondary);
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .color-section {
        margin-top: 0;
        padding-top: 0;
        margin-left: auto;
        margin-right: var(--space-md);
    }
    
    #main-canvas {
        max-width: calc(100vw - 2rem);
        max-height: calc(100% - 2rem);
        width: auto;
        height: auto;
    }
}

/* Mobile Portrait - Touch Optimized */
@media (max-width: 480px) {
    :root {
        --space-xs: 0.125rem;
        --space-sm: 0.25rem;
        --space-md: 0.375rem;
        --space-lg: 0.5rem;
        --space-xl: 0.75rem;
    }
    
    .app-bar {
        height: 44px;
        padding: var(--space-xs) var(--space-sm);
    }
    
    .app-title {
        font-size: var(--font-size-base);
    }
    
    .workspace-controls {
        gap: var(--space-xs);
    }
    
    .workspace-btn, .minimize-btn, .maximize-btn, .close-btn {
        min-width: 28px;
        height: 28px;
        font-size: var(--font-size-xs);
    }
    
    .tools-panel {
        height: 56px;
        padding: var(--space-xs) var(--space-sm);
    }
    
    .tool-btn {
        width: 44px;
        height: 44px;
        /* Improved touch target size */
        min-width: 44px;
        min-height: 44px;
    }
    
    .tool-icon {
        font-size: 16px;
    }
    
    .options-bar {
        min-height: 48px;
        padding: var(--space-xs) var(--space-sm);
    }
    
    .tool-options button {
        min-width: 36px;
        height: 36px;
        padding: var(--space-xs);
    }
    
    .tool-options input[type="range"] {
        width: 80px;
    }
    
    .canvas-container {
        padding: var(--space-sm);
    }
    
    #main-canvas {
        max-width: calc(100vw - 1rem);
        max-height: calc(100% - 1rem);
        border-radius: var(--radius-sm);
    }
    
    .properties-panel {
        max-height: 200px;
        padding: var(--space-sm);
    }
    
    .panel-section {
        margin-bottom: var(--space-md);
    }
    
    .palette-color {
        width: 28px;
        height: 28px;
        /* Improved touch target */
        min-width: 28px;
        min-height: 28px;
    }
    
    .layer-item, .history-item {
        padding: var(--space-sm);
        /* Improved touch target */
        min-height: 40px;
    }
    
    .status-bar {
        height: 28px;
        padding: var(--space-xs) var(--space-sm);
        font-size: 10px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #2d2d2d;
}

::-webkit-scrollbar-thumb {
    background: #555555;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666666;
}

/* Tooltip Styling */
.tool-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    top: -30px;
    right: 50px;
    background: #1a1a1a;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    max-width: 200px;
    word-wrap: break-word;
}

/* Canvas Selection Styles */
.selection-overlay {
    position: absolute;
    border: 1px dashed #0078d4;
    background: rgba(0, 120, 212, 0.1);
    pointer-events: none;
}

/* Layer Panel Styles */
.add-layer {
    background-color: #404040 !important;
    border: 1px dashed #666666 !important;
    color: #999999;
    font-style: italic;
}

.add-layer:hover {
    background-color: #4a4a4a !important;
    color: #cccccc;
}

.layer-icon {
    font-weight: bold;
    font-size: 16px;
}

/* Enhanced Zoom Controls Styling */
.mobile-zoom-controls {
    display: flex;
    gap: var(--space-sm);
    margin-left: var(--space-md);
}

.zoom-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: 1px solid var(--accent-secondary);
    color: white;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 60px;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.zoom-btn:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.zoom-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.zoom-text {
    font-size: 16px;
    font-weight: bold;
}

/* Always Visible Zoom Controls */
.always-visible-zoom-controls {
    position: fixed;
    bottom: 120px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.zoom-btn-always {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.zoom-btn-always:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
}

.zoom-btn-always:active {
    transform: scale(0.95);
}

.zoom-btn-always.zoom-in {
    background: linear-gradient(135deg, var(--accent-success), #2ea043);
}

.zoom-btn-always.zoom-out {
    background: linear-gradient(135deg, var(--accent-warning), #da3633);
}

/* Show always visible zoom controls on mobile */
@media (max-width: 768px), (hover: none) {
    .always-visible-zoom-controls {
        opacity: 1;
        visibility: visible;
    }
    
    /* Adjust for very small screens to avoid crowding */
    @media (max-height: 600px) {
        .always-visible-zoom-controls {
            bottom: 80px;
        }
        
        .zoom-btn-always {
            width: 48px;
            height: 48px;
            font-size: 20px;
        }
    }
}

/* Show on hover for desktop */
@media (min-width: 769px) and (hover: hover) {
    .canvas-container:hover .always-visible-zoom-controls {
        opacity: 0.8;
        visibility: visible;
    }
    
    .always-visible-zoom-controls:hover {
        opacity: 1;
    }
}
