/* ==========================================================================
   TERMIK MOCKUP STUDIO — GLOBAL CUSTOM DESIGN SYSTEM
   Theme: Tech Dark Pro / Neo-Glassmorphism / HSL Color tokens
   ========================================================================== */

:root {
    /* Termik Outdoor Official Color Palette */
    --bg-app: #131314;           /* Deep dark charcoal background */
    --bg-primary: #1c1c1d;       /* Brand dark base */
    --bg-secondary: #2a2a2b;     /* Lighter slate card/button background */
    --bg-tertiary: #3e3e40;      /* Borders and hover overlays */
    
    --accent-primary: #e96b1e;   /* Termik Premium Orange Accent */
    --accent-primary-rgb: 233, 107, 30;
    --accent-secondary: #f97316; /* Bright orange gradient step */
    --accent-secondary-rgb: 249, 115, 22;
    --accent-success: #22c55e;
    --accent-warning: #eab308;
    --accent-danger: #ef4444;
    
    --text-primary: #ffffff;
    --text-secondary: #e4e4e7;
    --text-muted: #a1a1aa;
    --text-dark: #1c1c1d;
    
    /* UI Dimensions */
    --header-height: 64px;
    --sidebar-width: 420px;
    
    /* Styling Attributes */
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-glass: rgba(233, 107, 30, 0.08);
    --bg-glass: rgba(28, 28, 29, 0.85);
    --shadow-glow: 0 0 20px rgba(233, 107, 30, 0.15);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.6);
    
    /* Animation Easing */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-app);
    height: 100vh;
    overflow: hidden;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
}

/* Tech Dark Theme Utility classes */
.tech-dark {
    background-color: var(--bg-app);
}

.accent-text {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ==========================================================================
   APP CONTAINER LAYOUT
   ========================================================================== */

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* ==========================================================================
   APP HEADER
   ========================================================================== */

.app-header {
    height: var(--header-height);
    background-color: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-glow {
    width: 38px;
    height: 38px;
    border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.4);
}

.icon-brand {
    color: white;
    width: 20px;
    height: 20px;
}

.brand-text h1 {
    font-size: 16px;
    letter-spacing: 1px;
    font-weight: 800;
    margin-bottom: 2px;
}

.version-badge {
    font-size: 9px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--accent-secondary);
    padding: 1px 6px;
    border-radius: 20px;
    font-weight: 600;
}

/* Header Action Toolbar */
.canvas-quick-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.25);
    padding: 6px 12px;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 4px;
}

.btn-action-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-action-icon:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.btn-action-icon:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-action-icon.btn-danger:hover {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-danger);
}

.btn-action-icon.btn-warning:hover {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-warning);
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
}

.status-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-indicator-dot.online {
    background-color: var(--accent-success);
    box-shadow: 0 0 8px var(--accent-success);
    animation: pulse 2s infinite;
}

.status-text {
    font-size: 11px;
    font-weight: 500;
    color: var(--accent-success);
}

/* ==========================================================================
   WORKSPACE MAIN GRID LAYOUT
   ========================================================================== */

.workspace-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    height: calc(100vh - var(--header-height));
    width: 100vw;
}

/* Glassmorphism sidebar controls */
.glassmorphism {
    background: var(--bg-glass);
    border-right: 1px solid var(--border-glass);
    backdrop-filter: blur(16px) saturate(180%);
    box-shadow: var(--shadow-heavy);
}

.control-panel {
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    z-index: 10;
    flex-shrink: 0;
}

/* Sidebar Tab Navigation */
.tab-navigation {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    gap: 2px;
}

.tab-trigger {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px 6px;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.tab-trigger i {
    width: 16px;
    height: 16px;
}

.tab-trigger:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.tab-trigger.active {
    color: var(--accent-primary);
    background: rgba(var(--accent-primary-rgb), 0.08);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.15);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Sidebar Tab Viewport & Scrollable content */
.tabs-viewport {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.2s ease-out;
}

.tab-pane.active {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Control Group Wrappers */
.control-group {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: var(--transition-smooth);
}

.control-group:hover {
    border-color: rgba(var(--accent-primary-rgb), 0.15);
    background: rgba(255, 255, 255, 0.03);
}

.section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title.accent-border {
    position: relative;
    padding-left: 10px;
}

.section-title.accent-border::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 3px;
    border-radius: 20px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
}

.section-description {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: -6px;
    line-height: 1.4;
}

/* ==========================================================================
   IMAGE UPLOAD DROPZONE
   ========================================================================== */

.upload-dropzone {
    border: 2px dashed rgba(var(--accent-primary-rgb), 0.3);
    background: rgba(var(--accent-primary-rgb), 0.02);
    border-radius: var(--border-radius-md);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: var(--accent-primary);
    background: rgba(var(--accent-primary-rgb), 0.08);
    box-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.1);
}

.upload-icon {
    width: 36px;
    height: 36px;
    color: var(--text-muted);
    margin-bottom: 12px;
    transition: var(--transition-smooth);
}

.upload-dropzone:hover .upload-icon {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.upload-primary-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.upload-secondary-text {
    font-size: 11px;
    color: var(--text-muted);
    margin: 2px 0 8px 0;
}

.browse-link {
    color: var(--accent-primary);
    text-decoration: underline;
    font-weight: 600;
}

.upload-note {
    font-size: 9px;
    color: var(--text-muted);
    line-height: 1.3;
}

/* ==========================================================================
   CUSTOM FORM CONTROLS
   ========================================================================== */

/* Sliders */
.property-slider {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.slider-header label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
}

.slider-value {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-primary);
    background: rgba(var(--accent-primary-rgb), 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.custom-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    transition: var(--transition-fast);
}

.custom-slider:hover {
    background: rgba(255, 255, 255, 0.15);
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.6);
    transition: var(--transition-fast);
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--accent-secondary);
    box-shadow: 0 0 12px rgba(var(--accent-secondary-rgb), 0.8);
}

/* Typography select and input components */
.custom-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    padding: 10px 12px;
    font-size: 12px;
    resize: none;
    outline: none;
    transition: var(--transition-fast);
}

.custom-textarea:focus {
    border-color: var(--accent-primary);
    background-color: rgba(0,0,0,0.3);
    box-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.1);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row.border-top {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 14px;
    margin-top: 6px;
}

.form-row label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
}

.custom-select {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    padding: 10px;
    font-size: 12px;
    outline: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.custom-select:focus {
    border-color: var(--accent-primary);
}

.custom-select option {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.control-row {
    display: flex;
    gap: 12px;
}

.control-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.control-col label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Button layout primitives */
.button-group {
    display: flex;
    gap: 6px;
}

.button-toggle-group {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    padding: 3px;
    gap: 2px;
}

.btn-toggle {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.btn-toggle i {
    width: 14px;
    height: 14px;
}

.btn-toggle:hover {
    color: var(--text-primary);
}

.btn-toggle.active {
    background: var(--accent-primary);
    color: white;
}

/* Presets grid for dada kiri, dada kanan, dll */
.presets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.btn-preset {
    background: rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--border-radius-sm);
    padding: 10px 8px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.btn-preset i {
    width: 14px;
    height: 14px;
    color: var(--accent-primary);
}

.btn-preset:hover {
    border-color: var(--accent-primary);
    background: rgba(var(--accent-primary-rgb), 0.05);
    color: var(--text-primary);
    transform: translateY(-1px);
}

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

/* Sleek Standard Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    color: white;
    padding: 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(var(--accent-primary-rgb), 0.25);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(var(--accent-primary-rgb), 0.4);
    opacity: 0.95;
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.btn-secondary i {
    width: 14px;
    height: 14px;
}

.btn-full-width {
    width: 100%;
}

/* ==========================================================================
   COLOR PICKERS
   ========================================================================== */

.color-picker-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.picker-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.picker-row label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
}

.picker-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.native-color-picker {
    -webkit-appearance: none;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    cursor: pointer;
    background: transparent;
}

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

.native-color-picker::-webkit-color-swatch {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.color-hex-text {
    font-size: 11px;
    font-family: monospace;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Swatches palette */
.quick-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.palette-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.palette-swatch:hover {
    transform: scale(1.15);
}

.palette-swatch.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    box-shadow: 0 0 2px rgba(255,255,255,0.8);
}

/* Light/white swatch check */
.palette-swatch[data-color="#ffffff"].active::after {
    background-color: #000000;
}

/* ==========================================================================
   WORKSPACE TABS: WORKSPACE SETTINGS
   ========================================================================== */

/* Toggle Switch Styling */
.toggle-control-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

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

.toggle-main {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.toggle-sub {
    font-size: 10px;
    color: var(--text-muted);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 34px;
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-secondary);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--accent-primary);
    border-color: rgba(var(--accent-primary-rgb), 0.2);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(18px);
    background-color: white;
}

/* Workspace custom background options */
.workspace-bg-picker {
    display: flex;
    gap: 8px;
}

.bg-option {
    flex: 1;
    height: 38px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.06);
    position: relative;
    transition: var(--transition-fast);
}

.bg-option:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.2);
}

.bg-option.active {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.3);
}

.bg-option.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-primary);
}

.checkerboard-icon-preview {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background-color: #ffffff;
    background-image: 
        linear-gradient(45deg, #ccc 25%, transparent 25%), 
        linear-gradient(-45deg, #ccc 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #ccc 75%), 
        linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
    opacity: 0.85;
}

/* Metadata property card */
.meta-info-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    font-size: 11px;
    border: 1px solid rgba(255,255,255,0.04);
}

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

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

.meta-label {
    color: var(--text-muted);
}

.meta-value {
    color: var(--text-secondary);
    font-weight: 500;
}

.meta-value.select-all {
    user-select: all;
    font-family: monospace;
    font-size: 10px;
    background: rgba(255,255,255,0.05);
    padding: 1px 4px;
    border-radius: 3px;
}

.editor-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(var(--accent-primary-rgb), 0.05);
    border: 1px dashed rgba(var(--accent-primary-rgb), 0.2);
    padding: 12px;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.4;
    margin-top: 10px;
}

.editor-info-banner i {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 1px;
}

/* ==========================================================================
   SIDEBAR FOOTER & EXPORT BUTTON
   ========================================================================== */

.sidebar-footer {
    padding: 20px 24px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.15);
}

.btn-export-highres {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    color: white;
    padding: 14px;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(var(--accent-primary-rgb), 0.25);
    transition: var(--transition-smooth);
}

.btn-export-highres:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(var(--accent-primary-rgb), 0.4);
    filter: brightness(1.05);
}

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

.btn-export-highres i {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   RIGHT CANVAS VIEWPORT
   ========================================================================== */

.canvas-viewport {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: background-color var(--transition-smooth);
}

/* Canvas Viewport theme modes */
.canvas-viewport.bg-dark {
    background-color: var(--bg-app);
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(var(--accent-primary-rgb), 0.04) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(var(--accent-secondary-rgb), 0.04) 0%, transparent 40%);
}

.canvas-viewport.bg-light {
    background-color: #f1f5f9;
}

.canvas-viewport.bg-navy {
    background-color: #0b1e3b;
    background-image: radial-gradient(circle at 50% 50%, #0d2850 0%, #051020 100%);
}

.canvas-viewport.bg-grid {
    background-color: #ffffff;
    background-image: 
        linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
        linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
        linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}


/* Canvas Box Centering Container */
.canvas-wrapper-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.fabric-canvas-container {
    background: transparent;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: box-shadow var(--transition-smooth), transform var(--transition-smooth);
}

.canvas-viewport.bg-light .fabric-canvas-container {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Viewport Footer Shortcuts */
.viewport-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 16px;
}

.canvas-viewport.bg-light .viewport-footer {
    border-color: rgba(0,0,0,0.06);
}

.kbd-shortcuts-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.shortcut-pill {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--text-muted);
}

.canvas-viewport.bg-light .shortcut-pill {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.06);
    color: var(--bg-tertiary);
}

.kbd {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 1px 4px;
    border-radius: 3px;
    font-family: monospace;
    font-weight: 600;
}

.canvas-viewport.bg-light .kbd {
    background: rgba(0,0,0,0.08);
    color: var(--text-dark);
}

/* Viewport Zoom Actions */
.zoom-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
}

.canvas-viewport.bg-light .zoom-controls {
    background: white;
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.btn-mini-action {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.btn-mini-action:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.canvas-viewport.bg-light .btn-mini-action {
    color: var(--bg-tertiary);
}

.canvas-viewport.bg-light .btn-mini-action:hover {
    background: rgba(0,0,0,0.05);
    color: var(--text-dark);
}

.btn-mini-action i {
    width: 14px;
    height: 14px;
}

.zoom-text {
    font-size: 11px;
    font-weight: 600;
    width: 42px;
    text-align: center;
    color: var(--text-secondary);
}

.canvas-viewport.bg-light .zoom-text {
    color: var(--text-dark);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN ADAPTATIONS (MOBILE/TABLET)
   ========================================================================== */

@media (max-width: 1024px) {
    .workspace-layout {
        flex-direction: column;
        overflow-y: auto;
    }
    
    .control-panel {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
    }
    
    .tabs-viewport {
        max-height: 400px;
    }
    
    .canvas-viewport {
        min-height: 500px;
        padding: 16px;
    }
    
    .canvas-wrapper-container {
        padding: 12px 0;
    }
}

@media (max-width: 640px) {
    .app-header {
        padding: 0 12px;
    }
    
    .brand-text h1 {
        font-size: 13px;
    }
    
    .canvas-quick-actions {
        padding: 4px 6px;
    }
    
    .tab-trigger span {
        display: none;
    }
    
    .tab-trigger {
        padding: 12px;
    }
    
    .kbd-shortcuts-bar {
        display: none;
    }
    
    .viewport-footer {
        justify-content: center;
    }
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON STYLE
   ========================================================================== */

.wa-float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 50px;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25), 
                0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: waEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.wa-float-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4), 
                0 0 0 1px rgba(255, 255, 255, 0.25) inset;
    color: #ffffff !important;
}

.wa-float-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.wa-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pulsing notification dot to make it stand out and feel alive */
.wa-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background-color: var(--accent-danger, #ef4444);
    border: 2px solid #ffffff;
    border-radius: 50%;
    animation: waDotPulse 2s infinite;
}

@keyframes waEntrance {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes waDotPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Responsive adjustment for mobile screen layout */
@media (max-width: 1024px) {
    .wa-float-btn {
        bottom: 74px; /* Higher bottom offset to prevent covering bottom controls on smaller displays */
        right: 16px;
        padding: 10px 16px;
        font-size: 11px;
    }
}

