/* CSS reset */
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td { 
    margin:0;
    padding:0;
}
html,body {
    margin:0;
    padding:0;
}
table {
    border-collapse:collapse;
    border-spacing:0;
}
fieldset,img { 
    border:0;
}
input{
    border:1px solid #b0b0b0;
    padding:3px 5px 4px;
    color:#979797;
    width:190px;
}
address,caption,cite,code,dfn,th,var {
    font-style:normal;
    font-weight:normal;
}
ol,ul {
    list-style:none;
}
caption,th {
    text-align:left;
}
h1,h2,h3,h4,h5,h6 {
    font-size:100%;
    font-weight:normal;
}
q:before,q:after {
    content:'';
}
abbr,acronym { border:0;
}

/* ===== Website Zoom in - Zoom Out ===== */
body{
    zoom: 58%;   
}


/* ===== CSS VARIABLES ===== */
:root {
    --primary: #1E2A78;
    --secondary: #00D8FF;
    --accent: #FDFDFD;
    --dark: #0F1419;
    --gray-light: #E2E8F0;
    --gray-medium: #64748B;
    --gray-dark: #334155;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    
    --navbar-height: 50px;
    --panel-width: 280px;
    --bottom-panel-height: 100px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    color: var(--accent);
    overflow: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: rgba(30, 42, 120, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 216, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

.brand-icon {
    color: var(--secondary);
    font-size: 28px;
    filter: drop-shadow(0 0 8px rgba(0, 216, 255, 0.5));
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.viewport-switcher {
    display: flex;
    background: rgba(0, 216, 255, 0.1);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.viewport-btn {
    background: transparent;
    border: none;
    color: var(--gray-light);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 14px;
}

.viewport-btn:hover {
    color: var(--secondary);
    background: rgba(0, 216, 255, 0.1);
    transform: translateY(-1px);
}

.viewport-btn.active {
    background: var(--secondary);
    color: var(--dark);
    box-shadow: var(--shadow-md);
}

.nav-btn {
    background: rgba(253, 253, 253, 0.1);
    border: 1px solid rgba(0, 216, 255, 0.2);
    color: var(--accent);
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(0, 216, 255, 0.2);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.export-btn {
    background: linear-gradient(135deg, var(--secondary), #0099CC);
    border: none;
    color: var(--dark);
    font-weight: 600;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 216, 255, 0.4);
}

/* ===== DROPDOWN ===== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(30, 42, 120, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 216, 255, 0.2);
    border-radius: 16px;
    min-width: 200px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-fast);
    z-index: 1001;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.preset-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
    border-radius: 12px;
    margin: 4px;
}

.preset-item:hover {
    background: rgba(0, 216, 255, 0.2);
    transform: translateX(4px);
}

/* ===== MAIN CONTAINER ===== */
.main-container {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: var(--bottom-panel-height);
    display: flex;
}

/* ===== PANELS ===== */
.panel {
    background: rgba(30, 42, 120, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 216, 255, 0.2);
}

.left-panel {
    width: var(--panel-width);
    border-right: none;
}

.right-panel {
    width: var(--panel-width);
    border-left: none;
}

.bottom-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-panel-height);
    border-top: none;
}

.panel-header {
    padding: 5px 24px;
    border-bottom: 1px solid rgba(0, 216, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
}

.panel-content {
    padding: 24px;
    height: calc(100% - 80px);
    overflow-y: auto;
}

.panel-content::-webkit-scrollbar {
    width: 6px;
}

.panel-content::-webkit-scrollbar-track {
    background: transparent;
}

.panel-content::-webkit-scrollbar-thumb {
    background: rgba(0, 216, 255, 0.3);
    border-radius: 3px;
}

/* ===== TOOL GROUPS ===== */
.tool-group {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 216, 255, 0.1);
}

.tool-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tool-btn {
    width: 100%;
    background: rgba(253, 253, 253, 0.05);
    border: 1px solid rgba(0, 216, 255, 0.2);
    color: var(--accent);
    padding: 14px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    backdrop-filter: blur(10px);
}

.tool-btn:hover {
    background: rgba(0, 216, 255, 0.1);
    border-color: var(--secondary);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.tool-btn:active {
    transform: translateX(2px);
}

.tool-btn i {
    color: var(--secondary);
    width: 16px;
}

/* ===== CANVAS AREA ===== */
.canvas-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: radial-gradient(circle at center, rgba(0, 216, 255, 0.05) 0%, transparent 70%);
}

.canvas-wrapper {
    position: relative;
    background: var(--accent);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transition: var(--transition-slow);
}

.canvas {
    position: relative;
    background: #FAFAFA;
    min-height: 200px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 16px;
    padding: 20px;
    transition: var(--transition-slow);
}

.canvas.desktop {
    width: 1200px;
    height: 800px;
}

.canvas.tablet {
    zoom: 80%; /* Shrinks everything */
    width: 768px;
    height: 1024px;
}

.canvas.mobile {
    zoom: 125%; /* Shrinks everything */
    width: 375px;
    height: 667px;
}

/* ===== GRID OVERLAY ===== */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0;
    transition: var(--transition-fast);
    background-image: 
        linear-gradient(to right, rgba(0, 216, 255, 0.3) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 216, 255, 0.3) 1px, transparent 1px);
    background-size: calc(100% / 12) calc(100% / 8);
    background-position: 20px 20px;
}

.canvas.show-grid .grid-overlay {
    opacity: 1;
}

/* ===== RULERS ===== */
.ruler {
    background: rgba(30, 42, 120, 0.1);
    position: absolute;
    z-index: 10;
}

.ruler-horizontal {
    top: 0;
    left: 20px;
    right: 0;
    height: 20px;
    border-bottom: 1px solid rgba(0, 216, 255, 0.3);
}

.ruler-vertical {
    top: 20px;
    left: 0;
    bottom: 0;
    width: 20px;
    border-right: 1px solid rgba(0, 216, 255, 0.3);
}

/* ===== GRID BOXES ===== */
.grid-box {
    background: var(--secondary);
    border-radius: 8px;
    position: relative;
    cursor: move;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.grid-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 216, 255, 0.5);
}

.grid-box.selected {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 216, 255, 0.3);
}

.grid-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
}

/* ===== RESIZE HANDLES ===== */
.resize-handle {
    position: absolute;
    background: var(--accent);
    border: 2px solid var(--secondary);
    border-radius: 50%;
    width: 12px;
    height: 12px;
    z-index: 20;
    opacity: 0;
    transition: var(--transition-fast);
}

.grid-box.selected .resize-handle {
    opacity: 1;
}

.resize-handle:hover {
    transform: scale(1.2);
    box-shadow: var(--shadow-md);
}

.resize-se {
    bottom: -6px;
    right: -6px;
    cursor: se-resize;
}

.resize-sw {
    bottom: -6px;
    left: -6px;
    cursor: sw-resize;
}

.resize-ne {
    top: -6px;
    right: -6px;
    cursor: ne-resize;
}

.resize-nw {
    top: -6px;
    left: -6px;
    cursor: nw-resize;
}

/* ===== INSPECTOR ===== */
.inspector-content {
    height: 100%;
}

.no-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--gray-medium);
}

.no-selection i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--secondary);
    opacity: 0.5;
}

.box-inspector {
    display: none;
}

.property-group {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 216, 255, 0.1);
}

.property-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.property-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

.input-row {
    display: flex;
    gap: 8px;
}

.input-group {
    flex: 1;
}

.input-group label {
    font-size: 12px;
    color: var(--gray-medium);
    margin-bottom: 4px;
}

input[type="number"],
input[type="color"],
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    background: rgba(253, 253, 253, 0.05);
    border: 1px solid rgba(0, 216, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--accent);
    font-size: 14px;
    transition: var(--transition-fast);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 216, 255, 0.2);
    background: rgba(253, 253, 253, 0.1);
}

input[type="color"] {
    height: 40px;
    padding: 4px;
    cursor: pointer;
}

.delete-box-btn {
    width: 100%;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.delete-box-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--error);
    transform: translateY(-1px);
}

/* ===== CODE TABS ===== */
.code-tabs {
    display: flex;
    gap: 4px;
}

.code-tab {
    background: rgba(253, 253, 253, 0.05);
    border: 1px solid rgba(0, 216, 255, 0.2);
    color: var(--gray-light);
    padding: 8px 16px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 14px;
    font-weight: 500;
}

.code-tab:hover {
    color: var(--accent);
    border-color: var(--secondary);
}

.code-tab.active {
    background: rgba(0, 216, 255, 0.1);
    border-color: var(--secondary);
    color: var(--secondary);
}

/* ===== CODE PREVIEW ===== */
.code-preview {
    height: 100%;
    position: relative;
}

.code-block {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 20, 25, 0.95);
    border-radius: 8px;
    padding: 20px;
    overflow-y: auto;
    opacity: 0;
    transition: var(--transition-fast);
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid rgba(0, 216, 255, 0.2);
}

.code-block.active {
    opacity: 1;
}

.code-block::-webkit-scrollbar {
    width: 8px;
}

.code-block::-webkit-scrollbar-track {
    background: rgba(0, 216, 255, 0.1);
    border-radius: 4px;
}

.code-block::-webkit-scrollbar-thumb {
    background: rgba(0, 216, 255, 0.4);
    border-radius: 4px;
}

.code-block code {
    color: var(--gray-light);
    white-space: pre-wrap;
}

/* ===== MODALS ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(30, 42, 120, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 216, 255, 0.3);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: var(--transition-fast);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 24px 24px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 216, 255, 0.2);
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--gray-medium);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 8px;
    border-radius: 8px;
}

.modal-close:hover {
    color: var(--accent);
    background: rgba(0, 216, 255, 0.1);
}

.modal-body {
    padding: 24px;
}

/* ===== EXPORT OPTIONS ===== */
.export-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.export-option {
    background: rgba(253, 253, 253, 0.05);
    border: 1px solid rgba(0, 216, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.export-option:hover {
    background: rgba(0, 216, 255, 0.1);
    border-color: var(--secondary);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.export-option i {
    font-size: 24px;
    color: var(--secondary);
    width: 32px;
}

.export-option span {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
}

.export-option small {
    display: block;
    font-size: 13px;
    color: var(--gray-medium);
    margin-top: 4px;
}

/* ===== FEEDBACK FORM ===== */
.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

.submit-btn {
    background: linear-gradient(135deg, var(--secondary), #0099CC);
    border: none;
    color: var(--dark);
    padding: 14px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 216, 255, 0.4);
}

/* ===== ONBOARDING ===== */
.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-slow);
}

.onboarding-overlay.active {
    opacity: 1;
    visibility: visible;
}

.onboarding-content {
    background: rgba(30, 42, 120, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 216, 255, 0.3);
    border-radius: 24px;
    max-width: 480px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.onboarding-step {
    padding: 48px 32px;
    text-align: center;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-slow);
}

.onboarding-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.step-icon {
    background: linear-gradient(135deg, var(--secondary), #0099CC);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 32px rgba(0, 216, 255, 0.4);
}

.step-icon i {
    font-size: 32px;
    color: var(--dark);
}

.onboarding-step h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
}

.onboarding-step p {
    font-size: 16px;
    color: var(--gray-light);
    line-height: 1.6;
    margin-bottom: 32px;
}

.onboarding-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.onboarding-btn {
    background: rgba(253, 253, 253, 0.1);
    border: 1px solid rgba(0, 216, 255, 0.3);
    color: var(--accent);
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 14px;
    font-weight: 600;
    min-width: 100px;
}

.onboarding-btn:hover {
    background: rgba(0, 216, 255, 0.2);
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.onboarding-btn.next-step,
.onboarding-btn.finish-tour {
    background: linear-gradient(135deg, var(--secondary), #0099CC);
    border: none;
    color: var(--dark);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: rgba(30, 42, 120, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 216, 255, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    color: var(--accent);
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    opacity: 0;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-color: rgba(16, 185, 129, 0.5);
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.5);
}

.toast i {
    font-size: 18px;
    color: var(--secondary);
}

.toast.success i {
    color: var(--success);
}

.toast.error i {
    color: var(--error);
}

/* ===== GUIDES ===== */
.guides-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 5;
}

.guide-line {
    position: absolute;
    background: var(--secondary);
    opacity: 0;
    transition: var(--transition-fast);
    pointer-events: all;
    cursor: move;
}

.guide-line.horizontal {
    height: 1px;
    left: 0;
    right: 0;
    box-shadow: 0 0 4px rgba(0, 216, 255, 0.8);
}

.guide-line.vertical {
    width: 1px;
    top: 0;
    bottom: 0;
    box-shadow: 0 0 4px rgba(0, 216, 255, 0.8);
}

.guide-line.visible {
    opacity: 0.8;
}

.guide-line:hover {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(0, 216, 255, 0.6));
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1400px) {
    :root {
        --panel-width: 260px;
    }
}

@media (max-width: 1200px) {
    :root {
        --panel-width: 240px;
        --bottom-panel-height: 250px;
    }
    
    .canvas.desktop {
        width: 900px;
        height: 600px;
    }
}

@media (max-width: 768px) {
    :root {
        --panel-width: 200px;
        --bottom-panel-height: 200px;
    }
    
    .nav-btn span {
        display: none;
    }
    
    .nav-btn {
        padding: 10px 12px;
    }
    
    .brand-text {
        display: none;
    }
    
    .canvas.desktop {
        width: 600px;
        height: 400px;
    }
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.dragging {
    opacity: 0.8;
    transform: rotate(2deg);
    z-index: 100;
    cursor: grabbing !important;
}

.drag-over {
    background: rgba(0, 216, 255, 0.1);
    border: 2px dashed var(--secondary);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out;
}

.animate-slideIn {
    animation: slideIn 0.4s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-bounce {
    animation: bounce 1s ease-in-out;
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .left-panel,
    .right-panel,
    .bottom-panel,
    .modal,
    .toast-container {
        display: none !important;
    }
    
    .canvas-area {
        padding: 0;
    }
    
    .canvas {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}