/* ==========================================================================
   MOBILIA EXPRESS - OUTDOOR KITCHEN BUILDER DESIGN SYSTEM
   Modern Architectural Minimalism | Glassmorphism & High-Contrast Dark Mode
   ========================================================================== */

:root {
    /* Color Palette - Darboni Premium */
    --bg-dark: #0a0a0a;
    --panel-bg: rgba(18, 18, 18, 0.85);
    --panel-border: rgba(255, 255, 255, 0.12);
    --panel-hover: rgba(30, 30, 30, 0.95);
    
    --accent: #ffffff;       /* Minimalist White */
    --accent-hover: #e4e4e7;
    --accent-glow: rgba(255, 255, 255, 0.15);
    
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --success: #10b981;
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Outfit', var(--font-sans);
    
    /* Transitions & Shadows */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-glass: 0 20px 50px rgba(0, 0, 0, 0.6);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Reset & Base */
.hidden { display: none !important; }

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    user-select: none;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 3D Canvas Container */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    cursor: grab;
}
#canvas-container:active {
    cursor: grabbing;
}

/* ==========================================================================
   TOP NAVIGATION HEADER
   ========================================================================== */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--panel-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.brand-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 1px;
    color: #fff;
}
.accent-text {
    color: var(--accent);
}
.logo-badge {
    background: rgba(74, 222, 128, 0.15);
    color: var(--accent);
    border: 1px solid rgba(74, 222, 128, 0.4);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}
.brand-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Live Stats Bar */
.stats-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.35);
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.stat-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.stat-box:last-child {
    border-right: none;
}
.stat-label {
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.8px;
}
.stat-value {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}
.stat-value small {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 400;
}
.stat-box.highlight .stat-value {
    color: var(--accent);
    text-shadow: 0 0 12px var(--accent-glow);
}

/* Header Action Buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.btn {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-fast);
}
.btn-icon-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    padding: 8px 14px;
}
.btn-icon-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}
.btn-primary {
    background: var(--accent);
    color: #000;
    font-weight: 700;
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--accent-glow);
}
.btn-glow {
    box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
}
.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger:hover:not(:disabled) {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}
.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   FLOATING SIDEBAR UI
   ========================================================================== */
.sidebar-ui {
    position: fixed;
    top: 72px;
    left: 0;
    width: 380px;
    height: calc(100vh - 72px);
    background: var(--panel-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid var(--panel-border);
    box-shadow: var(--shadow-glass);
    z-index: 10;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 24px;
}

.sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
}
.sidebar-header h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.sidebar-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

.config-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-secondary);
}
.badge-step {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Module Library Grid */
.module-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.module-btn {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-align: left;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}
.module-btn:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.module-btn:active {
    transform: translateX(2px) scale(0.99);
}
.module-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.module-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}
.module-info strong {
    font-size: 14px;
    font-weight: 600;
}
.module-info span {
    font-size: 11px;
    color: var(--text-secondary);
}
.add-badge {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--accent);
    transition: all var(--transition-fast);
}
.module-btn:hover .add-badge {
    background: var(--accent);
    color: #000;
}

/* Swatch Grids (Finishes & Countertops) */
.swatch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.swatch-grid.small-grid {
    grid-template-columns: repeat(3, 1fr);
}
.swatch-btn {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}
.swatch-btn:hover {
    background: rgba(51, 65, 85, 0.6);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}
.swatch-btn.active {
    background: rgba(74, 222, 128, 0.15);
    border: 2px solid var(--accent);
    color: #fff;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.25);
}
.swatch-preview {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}
.swatch-btn.active .swatch-preview {
    border-color: #fff;
}
.swatch-btn span {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* Swatch Colors / Textures Preview */
.swatch-stainless {
    background: linear-gradient(135deg, #cbd5e1 0%, #64748b 50%, #94a3b8 100%);
}
.swatch-anthracite {
    background: #1e293b;
}
.swatch-desert {
    background: url('./Egger/sandcaselaoak.jpg') center/cover;
}
.swatch-white {
    background: #f8fafc;
}
.swatch-teak {
    background: repeating-linear-gradient(90deg, #b45309 0px, #b45309 4px, #78350f 4px, #78350f 6px);
}
.swatch-walnut {
    background: repeating-linear-gradient(90deg, #451a03 0px, #451a03 5px, #270f02 5px, #270f02 7px);
}
.swatch-granite {
    background: radial-gradient(circle, #334155 10%, #0f172a 90%);
}
.swatch-marble {
    background: linear-gradient(120deg, #f1f5f9 0%, #cbd5e1 45%, #f8fafc 50%, #e2e8f0 100%);
}
.swatch-concrete {
    background: #64748b;
}

/* Layout Actions & Selection Info */
.action-buttons-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.selected-info {
    background: rgba(0, 0, 0, 0.4);
    border: 1px dashed rgba(74, 222, 128, 0.5);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}
.selected-info.hidden {
    display: none;
}
.sel-label {
    color: var(--text-secondary);
}
.selected-info strong {
    color: var(--accent);
}

/* B2B Builder Callout Box */
.b2b-callout {
    margin-top: auto;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.b2b-icon {
    font-size: 26px;
}
.b2b-text strong {
    font-size: 13px;
    color: #fff;
    display: block;
    margin-bottom: 4px;
}
.b2b-text p {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ==========================================================================
   BOTTOM CONTROLS & TOOLTIP BAR
   ========================================================================== */
.bottom-controls {
    position: fixed;
    bottom: 20px;
    right: 24px;
    left: 404px; /* clears sidebar */
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 5;
}
.help-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    pointer-events: auto;
}
.pill {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}
.pill strong {
    color: var(--text-primary);
}

.model-loader-status {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
    box-shadow: var(--shadow-sm);
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.status-dot.green {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}
.model-loader-status strong {
    color: #fff;
}

/* ==========================================================================
   MODAL OVERLAY (WHOLESALE QUOTE)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: opacity var(--transition-smooth);
}
.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
.modal-card {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    transform: scale(1);
    transition: transform var(--transition-smooth);
}
.modal-overlay.hidden .modal-card {
    transform: scale(0.95);
}
.modal-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header h3 {
    font-family: var(--font-display);
    font-size: 20px;
    color: #fff;
}
.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}
.close-btn:hover {
    color: #fff;
}
.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.modal-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.config-summary-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(74, 222, 128, 0.25);
    border-radius: 8px;
    padding: 14px 18px;
}
.config-summary-box h4 {
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.config-summary-box ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 13px;
    color: var(--text-primary);
}
.config-summary-box ul strong {
    color: #fff;
}
.quote-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}
.form-group input, .form-group textarea {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 13px;
    outline: none;
    transition: border-color var(--transition-fast);
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
}
.btn-large {
    padding: 12px 24px;
    font-size: 14px;
}

/* ==========================================================================
   TOAST NOTIFICATION SYSTEM
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 80px;
    left: 404px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 4px solid var(--accent);
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #fff;
    animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.toast.toast-remove {
    border-left-color: var(--danger);
}
@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.toast-out {
    animation: toast-fade 0.3s forwards;
}
@keyframes toast-fade {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1200px) {
    .bottom-controls {
        left: 24px;
        bottom: 10px;
    }
    .help-pills {
        display: none; /* hide pills on medium screens to keep canvas clear */
    }
    .toast-container {
        left: 390px;
    }
}

/* ==========================================================================
   BLUEPRINT DIMENSIONS & RESIZING UI
   ========================================================================== */
#dimensions-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}
.dim-wrapper {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: opacity 0.2s;
}
.dim-wrapper.hidden {
    opacity: 0;
    pointer-events: none;
}
.dim-line-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
.dim-arrow {
    font-size: 11px;
    font-family: monospace;
    color: #4ade80;
}
.dim-line {
    height: 1px;
    background: #4ade80;
    min-width: 10px;
}
.dim-text-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}
.dim-text {
    font-family: 'Inter', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #4ade80;
    background: rgba(9, 13, 22, 0.7);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid transparent;
}

/* Total Dimension Line */
.total-dim-wrapper {
    position: absolute;
    transform: translate(-50%, -100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}
.total-dim-wrapper.hidden {
    display: none;
}
.total-dim-text {
    font-family: 'Inter', monospace;
    font-size: 14px;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(9, 13, 22, 0.75);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 2px;
}
.total-dim-line-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.total-dim-arrow {
    font-size: 12px;
    font-family: monospace;
    color: #38bdf8;
}
.total-dim-line {
    height: 1px;
    background: #38bdf8;
    width: 100px; /* dynamic */
}

/* Resize Handles */
.resize-handle {
    position: absolute;
    width: 30px;
    height: 60px;
    top: -15px;
    cursor: ew-resize;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}
.resize-handle::after {
    content: '⋮';
    color: #090d16;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 36px;
    background: rgba(74, 222, 128, 0.5);
    border: 1px solid rgba(74, 222, 128, 0.9);
    border-radius: 6px;
    transition: all var(--transition-fast);
}
.resize-handle:hover::after {
    background: rgba(74, 222, 128, 0.9);
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.6);
    height: 44px;
}

/* ==========================================================================
   SPA VIEWS & NEW COMPONENTS (AUTH, DASHBOARD, PROFILE, NAV)
   ========================================================================== */
.app-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    opacity: 1;
    transition: opacity var(--transition-smooth);
}
.app-view.hidden {
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

/* Auth Container */
.auth-container {
    width: 100%;
    max-width: 460px;
    margin: 80px auto;
    padding: 20px;
}
.glass-card {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.glass-card h2 {
    font-family: var(--font-display);
    font-size: 24px;
    color: #fff;
    margin-bottom: 8px;
}
.glass-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}
.btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    font-family: var(--font-sans);
    transition: color var(--transition-fast);
}
.btn-text:hover {
    color: #fff;
}
.auth-links {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Dashboard */
.dashboard-header {
    height: 72px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--panel-bg);
    border-bottom: 1px solid var(--panel-border);
}
.dashboard-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}
.dashboard-content {
    padding: 40px 32px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.dashboard-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.dashboard-top-bar h2 {
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: 2px;
    color: #fff;
}
.dashboard-top-bar p {
    color: var(--accent);
    font-weight: 500;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.project-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all var(--transition-fast);
}
.project-card:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.project-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.project-meta {
    font-size: 12px;
    color: var(--text-secondary);
}
.project-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Designer Top Navigation */
.designer-top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background: #000;
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
}
.designer-nav-left, .designer-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
}
.designer-company {
    color: var(--accent);
    font-weight: 600;
}
.designer-project-label {
    color: var(--text-muted);
}
.nav-divider {
    color: var(--text-muted);
    opacity: 0.5;
}
#designer-project-name {
    color: #fff;
    font-weight: 600;
}
.save-status {
    color: var(--text-secondary);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.save-status.saving::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
    animation: pulse 1s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

/* Adjustments for Designer View with Top Nav */
#designer-view .app-header,
#interior-designer-view .app-header {
    top: 48px;
}
#designer-view .sidebar-ui,
#interior-designer-view .sidebar-ui {
    top: 120px;
    height: calc(100vh - 120px);
}

