:root {
    --kilo-dark-blue: #0A1C38;
    --kilo-light-blue: #00B0FC;
    --kilo-bg: #fcfcfc;
    --kilo-surface: #ffffff;
    --kilo-surface-elevated: #ffffff;
    --kilo-border: #d3d3d3;
    --kilo-border-strong: #e6e6e6;
    --kilo-text: #0f0f0f;
    --kilo-text-secondary: #525252;
    --kilo-text-muted: #a3a3a3;
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.02);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.03), 0 1px 2px -1px rgb(0 0 0 / 0.02);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.03), 0 2px 4px -2px rgb(0 0 0 / 0.02);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.04), 0 4px 6px -4px rgb(0 0 0 / 0.02);
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
}

/* Base Styles */
body {
    background: var(--kilo-bg);
    min-height: 100vh;
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Inter Variable', 'Inter', system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: var(--kilo-text);
    letter-spacing: -0.006em;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Dashboard Header */
.dashboard-header {
    background: var(--kilo-dark-blue);
    color: white;
    padding: 1.5rem 2rem;
    position: relative;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-section h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.logo-image {
    height: 2.2rem;
    width: auto;
    object-fit: contain;
}

.status-badge {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.375rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 400;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stats-pill {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Main Layout */
.main-container {
    background: var(--kilo-surface);
    box-shadow: var(--shadow-lg);
    margin: 0.75rem auto;
    overflow: hidden;
    border: 0.5px solid var(--kilo-border);
    margin:auto;
    width: 100%;

}

/* Upload Area */
.upload-area {
    background: var(--kilo-surface);
    border: 1px solid var(--kilo-border);
    border-style: dashed;
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    transition: all 0.1s ease;
    cursor: pointer;
    margin: 1rem;
    height: calc(100vh - 200px);
    align-content: center;
}
.title:not(.is-spaced)+.subtitle {
    margin-top: -.5rem;
}
.upload-area:hover,
.upload-area.dragover {
    border-color: var(--kilo-light-blue);
    background: rgba(0, 176, 252, 0.008);
}

.upload-icon {
    font-size: 2rem;
    color: var(--kilo-text-muted);
    margin-bottom: 0.75rem;
    transition: color 0.1s ease;
}

.upload-area:hover .upload-icon {
    color: var(--kilo-light-blue);
}

/* Layout Components */
.side-panel {
    background: var(--kilo-bg);
    padding: 1rem;
    border-right: 0.5px solid var(--kilo-border);
    min-height: calc(100vh - 160px);
}

.workspace {
    background: var(--kilo-bg);
    padding: 1rem;
    min-height: calc(100vh - 160px);
}

/* Tool Groups */
.tool-group {
    background: var(--kilo-surface);
    border-radius: var(--radius-lg);
    padding: 0.875rem;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-xs);
    border: 0.5px solid var(--kilo-border);
}

.tool-group h4 {
    color: var(--kilo-text);
    font-weight: 500;
    margin-bottom: 0.625rem;
    font-size: 0.75rem;
    letter-spacing: -0.006em;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    text-transform: uppercase;
}

/* Image Gallery */
.image-gallery {
    background: var(--kilo-surface);
    border-radius: var(--radius-lg);
    padding: 0.875rem;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-xs);
    border: 0.5px solid var(--kilo-border);
}

.image-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 0.5px solid var(--kilo-border);
    cursor: pointer;
    transition: all 0.1s ease;
}

.image-thumbnail.active {
    border-color: var(--kilo-light-blue);
    box-shadow: 0 0 0 1.5px rgba(0, 176, 252, 0.15);
}

.image-thumbnail:hover {
    border-color: var(--kilo-border-strong);
}

/* Thumbnail Delete Button */
.thumbnail-delete-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #dc2626 !important;
    color: white !important;
    border: 2px solid white !important;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    z-index: 100;
    user-select: none;
}

.thumbnail-delete-btn:hover {
    background: #dc2626 !important;
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

.thumbnail-wrapper {
    position: relative;
    display: inline-block;
}

.thumbnail-wrapper:hover .thumbnail-delete-btn {
    opacity: 1;
}

/* Modern Add More Button */
.add-more-button {
    width: 60px;
    height: 60px;
    border: 0.5px solid var(--kilo-border);
    border-radius: var(--radius-sm);
    background: var(--kilo-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.1s ease;
}

.add-more-button:hover {
    border-color: var(--kilo-light-blue);
    background: rgba(0, 176, 252, 0.008);
}

.add-more-button::before {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: var(--kilo-text-muted);
    transition: color 0.1s ease;
}

.add-more-button:hover::before {
    color: var(--kilo-light-blue);
}

/* Preset Grid */
.preset-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.preset-btn {
    background: var(--kilo-surface);
    border: 0.5px solid var(--kilo-border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 450;
    color: var(--kilo-text-secondary);
    transition: all 0.1s ease;
    cursor: pointer;
    text-align: center;
}

.preset-btn:hover {
    border-color: var(--kilo-light-blue);
    color: var(--kilo-light-blue);
    background: rgba(0, 176, 252, 0.008);
}

.preset-btn.active {
    background: var(--kilo-light-blue);
    border-color: var(--kilo-light-blue);
    color: white;
}

/* Format Selector */
.format-selector {
    display: flex;
    gap: 0.25rem;
    margin: 0.625rem 0;
}

.format-option {
    background: var(--kilo-surface);
    border: 0.5px solid var(--kilo-border);
    border-radius: var(--radius-sm);
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 450;
    color: var(--kilo-text-secondary);
    cursor: pointer;
    transition: all 0.1s ease;
    flex: 1;
    text-align: center;
}

.format-option:hover {
    border-color: var(--kilo-light-blue);
    color: var(--kilo-light-blue);
    background: rgba(0, 176, 252, 0.008);
}

.format-option.active {
    background: var(--kilo-light-blue);
    border-color: var(--kilo-light-blue);
    color: white;
}

/* Slider */
.slider-group {
    margin: 0.625rem 0;
}

.slider-group label {
    font-weight: 450;
    color: var(--kilo-text-secondary);
    font-size: 0.75rem;
    margin-bottom: 0.375rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.range-slider {
    width: 100%;
    height: 3px;
    border-radius: 1.5px;
    background: var(--kilo-border-strong);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--kilo-light-blue);
    cursor: pointer;
    border: 1.5px solid white;
    box-shadow: var(--shadow-sm);
    transition: all 0.1s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Canvas with resize handles - BeFunky Style */
.canvas-wrapper {
    position: relative;
    display: inline-block;
}

.resize-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border: 2px solid var(--kilo-light-blue);
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 1000;
    display: none;
}

.resize-handle.active {
    display: block;
}

.resize-handle.nw { 
    cursor: nw-resize; 
    top: -10px; 
    left: -10px;
}
.resize-handle.ne { 
    cursor: ne-resize; 
    top: -10px; 
    right: -10px;
}
.resize-handle.sw { 
    cursor: sw-resize; 
    bottom: -10px; 
    left: -10px;
}
.resize-handle.se { 
    cursor: se-resize; 
    bottom: -10px; 
    right: -10px;
}
.resize-handle.n { 
    cursor: n-resize; 
    top: -10px; 
    left: 50%; 
    transform: translateX(-50%);
}
.resize-handle.s { 
    cursor: s-resize; 
    bottom: -10px; 
    left: 50%; 
    transform: translateX(-50%);
}
.resize-handle.w { 
    cursor: w-resize; 
    top: 50%; 
    left: -10px; 
    transform: translateY(-50%);
}
.resize-handle.e { 
    cursor: e-resize; 
    top: 50%; 
    right: -10px; 
    transform: translateY(-50%);
}

.resize-handle:hover {
    background: var(--kilo-light-blue);
    border-color: white;
}

/* Grid overlay for cropping */
.canvas-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 999;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.3) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.3) 1px, transparent 1px);
    background-size: 33.333% 33.333%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.canvas-wrapper:hover::before,
.canvas-wrapper.active::before {
    opacity: 1;
}

/* Crop overlay border */
.canvas-wrapper::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid var(--kilo-light-blue);
    pointer-events: none;
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 4px;
}

.canvas-wrapper:hover::after,
.canvas-wrapper.active::after {
    opacity: 1;
}

/* Canvas */
/* Add these styles to your style.css to remove the space below canvas and fix hover outline */

.canvas-container {
    background: var(--kilo-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    padding: 1.5rem 1.5rem 0; /* Remove bottom padding */
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 0.5px solid var(--kilo-border);
}

/* Adjust the canvas area specifically */
.canvas-container > div:nth-child(2) {
    padding: 2rem 2rem 1rem !important; /* Reduced bottom padding */
    min-height: 900px !important;
}

/* Adjust control panel to have no top margin */
.control-panel {
    background: var(--kilo-surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-xs);
    border: 0.5px solid var(--kilo-border);
    margin-top: 0.5rem; /* Reduced from 1.5rem */
}

/* Remove the problematic hover outline */
.canvas-wrapper::after {
    display: none !important;
}

.canvas-wrapper::before {
    display: none !important;
}

/* Optional: Add a proper canvas hover effect that matches canvas size */
.canvas-wrapper:hover .interactive-canvas {
    box-shadow: 0 0 0 2px var(--kilo-light-blue);
}

.interactive-canvas {
    box-shadow: var(--shadow-md);
    cursor: grab;
    background: white;
    transition: all 0.1s ease;
}

.interactive-canvas:active {
    cursor: grabbing;
}

.interactive-canvas:hover {
    box-shadow: var(--shadow-lg);
}

/* Info Bar */
.info-bar {
    background: var(--kilo-dark-blue);
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 400;
}
.info-bar strong {
    color:#ffffff;
}
/* Buttons */
.button {
    background: var(--kilo-surface);
    border: 0.5px solid var(--kilo-border-strong);
    color: var(--kilo-text-secondary);
    border-radius: var(--radius-sm);
    padding: 0.375rem 0.75rem;
    font-weight: 450;
    font-size: 0.75rem;
    transition: all 0.1s ease;
    letter-spacing: -0.006em;
}

.button:hover {
    background: var(--kilo-bg);
    border-color: var(--kilo-border-strong);
    color: var(--kilo-text);
}

.btn-kilo {
    background: var(--kilo-light-blue);
    border: none;
    color: white;
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.8125rem;
    transition: all 0.1s ease;
    box-shadow: none;
    letter-spacing: -0.006em;
}

.btn-kilo:hover {
    background: #0099e0;
    color: white;
}

.btn-success {
    background: var(--kilo-light-blue);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.8125rem;
    transition: all 0.1s ease;
    letter-spacing: -0.006em;
    box-shadow: none;
}

.btn-success:hover {
    background: #0099e0;
    color: white;
}

/* Controls */
.control-panel {
    background: var(--kilo-surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-xs);
    border: 0.5px solid var(--kilo-border);
}

/* Progress Overlay */
.progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(20px);
}

.progress-card {
    background: var(--kilo-surface);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    min-width: 300px;
    box-shadow: var(--shadow-lg);
    border: 0.5px solid var(--kilo-border);
}

.progress-ring {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

/* Batch Actions */
.batch-actions {
    background: rgba(0, 176, 252, 0.05);
    border: 2px solid var(--kilo-light-blue);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-header {
        padding: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .main-container {
        margin: 0.5rem;
        border-radius: var(--radius-xl);
    }
    
    .columns {
        margin: 0 !important;
    }
    
    .column {
        padding: 0.5rem !important;
    }
    
    .upload-area {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .side-panel, .workspace {
        padding: 0.75rem;
    }
    
    .preset-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .format-selector {
        flex-direction: column;
    }
}

.template-accordion-header:hover { background: #f9fafb; }
.template-accordion-header:focus { outline: 2px solid var(--kilo-light-blue, #93c5fd); outline-offset: 2px; }

/* === Thumbnail highlight when selected === */
.image-thumbnail.active {
  outline: 3px solid var(--kilo-primary, #2563eb); /* use your primary color */
  outline-offset: 2px;
  border-radius: var(--radius-sm, 6px);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
  transition: outline-color 0.2s ease, box-shadow 0.2s ease;
}

.image-thumbnail:hover {
  box-shadow: 0 0 0 2px var(--kilo-primary, #2563eb);
}

.template-group {
    margin-bottom: 10px;
}
/* ===== RESPONSIVE IMPROVEMENTS - ADD TO YOUR EXISTING style.css ===== */

/* TABLET RESPONSIVE - 1024px and below */
@media (max-width: 1024px) {
    .columns {
        flex-direction: column;
    }
    
    .column.is-3 {
        max-width: 100%;
        width: 100%;
    }
    
    .column.is-9 {
        width: 100%;
    }
    
    .side-panel {
        border-right: none;
        border-bottom: 0.5px solid var(--kilo-border);
        min-height: auto;
        padding: 1rem;
    }
    
    .workspace {
        min-height: auto;
        padding: 1rem;
    }
    
    /* Canvas workspace responsive */
    .canvas-container > div:nth-child(2) {
        min-height: 400px !important;
        padding: 2rem !important;
    }
    
    .control-panel .columns {
        flex-direction: column;
        gap: 1rem;
    }
    
    .control-panel .column.is-narrow {
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }
    
    .buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* MOBILE RESPONSIVE - 768px and below */
@media (max-width: 768px) {
    .dashboard-header {
        padding: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .status-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }
    
    .main-container {
        margin: 0.5rem;
        border-radius: var(--radius-xl);
    }
    
    .upload-area {
        padding: 1.5rem;
        margin: 0.5rem;
        height: calc(100vh - 200px);
        min-height: 300px;
    }
    
    .upload-area .title {
        font-size: 1.25rem !important;
    }
    
    .upload-area .subtitle {
        font-size: 0.875rem !important;
    }
    
    .side-panel, .workspace {
        padding: 0.75rem;
    }
    
    /* Field group responsive */
    .field-group {
        flex-direction: column;
        gap: 0.375rem;
    }
    
    /* Apply controls responsive - target the inline styled div */
    .tool-group > div[style*="margin-top: 0.75rem"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }
    
    .preset-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.25rem;
    }
    
    .format-selector {
        flex-direction: column;
        gap: 0.375rem;
    }
    
    #thumbnailContainer {
        justify-content: center !important;
    }
    
    /* Info bar responsive - target the inline styled div */
    .info-bar > div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 0.5rem !important;
        text-align: left !important;
    }
    
    .buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .buttons .button {
        text-align: center;
        justify-content: center;
    }
    
    .control-panel .column.is-narrow .button {
        width: 100%;
        justify-content: center;
    }
    
    /* Welcome message responsive - target inline styled elements */
    #welcomeMessage {
        padding: 2rem 1rem !important;
    }
    
    #welcomeMessage > div:first-child {
        font-size: 3rem !important;
        margin-bottom: 1rem !important;
    }
    
    #welcomeMessage .title {
        font-size: 1.25rem !important;
    }
    
    #welcomeMessage .subtitle {
        font-size: 1rem !important;
    }
}

/* SMALL MOBILE - 480px and below */
@media (max-width: 480px) {
    .dashboard-header {
        padding: 0.75rem;
    }
    
    .main-container {
        margin: 0.25rem;
        border-radius: var(--radius-lg);
    }
    
    .upload-area {
        padding: 1rem;
        margin: 0.25rem;
        height: calc(100vh - 180px);
        min-height: 250px;
    }
    
    .upload-area .title {
        font-size: 1.125rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .upload-area .subtitle {
        font-size: 0.8rem !important;
        margin-bottom: 1rem !important;
    }
    
    .upload-area p:last-child {
        font-size: 0.75rem !important;
    }
    
    .side-panel, .workspace {
        padding: 0.5rem;
    }
    
    .tool-group {
        padding: 0.75rem;
    }
    
    .control-panel {
        padding: 1rem;
    }
    
    .canvas-container > div:nth-child(2) {
        padding: 1rem !important;
        min-height: 300px !important;
    }
    
    .interactive-canvas {
        max-width: calc(100vw - 2rem) !important;
    }
    
    .preset-grid {
        grid-template-columns: 1fr;
    }
    
    .preset-btn {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .buttons .button {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Hide button text on very small screens, keep icons */
    .buttons .button:not(.btn-kilo):not(.btn-success)::after {
        content: attr(data-mobile-text);
    }
    
    .buttons .button span,
    .control-panel .button span {
        display: none;
    }
    
    /* Hide download button text */
    #headerDownloadZip span,
    #downloadZipBtn span {
        display: none;
    }
    
    .batch-actions {
        padding: 1rem;
    }
    
    .progress-card {
        min-width: 250px;
        padding: 1.5rem;
        max-width: 90vw;
    }
    
    #thumbnailContainer {
        gap: 0.25rem !important;
    }
    
    .image-thumbnail,
    .add-more-button {
        width: 50px !important;
        height: 50px !important;
    }
}

/* TOUCH DEVICE OPTIMIZATIONS */
@media (hover: none) and (pointer: coarse) {
    .resize-handle {
        width: 24px;
        height: 24px;
    }
    
    .thumbnail-delete-btn {
        width: 26px;
        height: 26px;
        font-size: 16px;
    }
    
    .button {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    .preset-btn {
        min-height: 44px;
        padding: 0.75rem;
    }
    
    .format-option {
        min-height: 44px;
        padding: 0.75rem;
    }
    
    .range-slider::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
    }
}

/* HIGH DPI DISPLAYS */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-image {
        height: 2.4rem;
    }
    
    .resize-handle {
        border-width: 1px;
    }
    
    .thumbnail-delete-btn {
        border-width: 1px;
    }
}

/* LANDSCAPE MOBILE ORIENTATION */
@media (max-width: 900px) and (orientation: landscape) {
    .upload-area {
        height: calc(100vh - 160px);
        min-height: 200px;
    }
    
    #mainContent {
        min-height: calc(100vh - 120px) !important;
    }
    
    .canvas-container > div:nth-child(2) {
        min-height: 250px !important;
    }
}

/* PRINT STYLES */
@media print {
    .dashboard-header,
    .side-panel,
    .control-panel,
    .progress-overlay {
        display: none;
    }
    
    .main-container {
        margin: 0;
        border: none;
        box-shadow: none;
    }
    
    .workspace {
        padding: 0;
    }
    
    .canvas-container {
        border: none;
        box-shadow: none;
        padding: 0;
    }
}

/* ===== END OF RESPONSIVE IMPROVEMENTS ===== */