@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Dark mode (default) */
    --bg-base: #060813;
    --panel-glass: rgba(10, 15, 30, 0.55);
    --panel-border: rgba(255, 255, 255, 0.05);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #475569;

    --color-cool: #00f2fe;
    --color-cool-rgb: 0, 242, 254;
    --color-heat: #ff5e3a;
    --color-heat-rgb: 255, 94, 58;
    --color-dry: #ffdb00;
    --color-dry-rgb: 255, 219, 0;
    --color-fan: #00ff87;
    --color-fan-rgb: 0, 255, 135;

    --color-power: #10b981;
    --color-power-off: #ef4444;

    --font-sans: 'Outfit', sans-serif;
    --transition-premium: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.2s ease;
}

/* Light mode theme */
html.light-mode {
    --bg-base: #f8fafc;
    --panel-glass: rgba(255, 255, 255, 0.8);
    --panel-border: rgba(0, 0, 0, 0.08);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
}

html.light-mode .mesh-bg-container {
    background: #f0f4f8;
}

html.light-mode .mesh-glow {
    opacity: 0.08;
}

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

body {
    font-family: var(--font-sans);
    background: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Moving Mesh Background (Custom, Non-Template) */
.mesh-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background: #030408;
}

/* GPU Acceleration for animations */
.mesh-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    mix-blend-mode: screen;
    pointer-events: none;
    will-change: transform;
}

.orb-controller {
    position: relative;
    width: 290px;
    height: 290px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    animation: moveGlow1 25s infinite alternate ease-in-out;
}

.mesh-glow-2 {
    bottom: -20%;
    right: -10%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    animation: moveGlow2 20s infinite alternate ease-in-out;
}

.mesh-glow-3 {
    top: 40%;
    left: 50%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    animation: moveGlow3 30s infinite alternate ease-in-out;
}

@keyframes moveGlow1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 15%) scale(1.1); }
}
@keyframes moveGlow2 {
    0% { transform: translate(0, 0) scale(1.1); }
    100% { transform: translate(-15%, -10%) scale(0.9); }
}
@keyframes moveGlow3 {
    0% { transform: translate(-20%, 10%) scale(0.9); }
    100% { transform: translate(10%, -20%) scale(1.2); }
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    transition: var(--transition-quick);
}

.mobile-nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 1px;
    transition: var(--transition-quick);
}

.mobile-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
}

.mobile-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-quick);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* Header styling */
header {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    font-size: 1.5rem;
    color: var(--color-cool);
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.brand h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-indicator-pill {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-power);
    box-shadow: 0 0 8px var(--color-power);
}

.offline .status-dot {
    background: var(--color-power-off);
    box-shadow: 0 0 8px var(--color-power-off);
}

.time-display {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Dashboard Custom Layout */
.dashboard-viewport {
    flex-grow: 1;
    display: grid;
    grid-template-columns: 310px 380px 340px;
    gap: 1.5rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 1.5rem 6rem 1.5rem; /* space at bottom for floating dock */
    justify-content: center;
    align-items: center;
}

/* Columns */
.side-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

/* Lens Glassmorphic Container (Floating Look, Not Card) */
.lens-container {
    background: var(--panel-glass);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(25px) saturate(160%);
    -webkit-backdrop-filter: blur(25px) saturate(160%);
    border-radius: 24px;
    padding: 1.15rem;
    box-shadow: 0 15px 45px 0 rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: var(--transition-premium);
}

.lens-container:hover {
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 20px 55px 0 rgba(0, 0, 0, 0.35);
}

.lens-title {
    font-size: 0.95rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.1);
}

.lens-title i {
    font-size: 1.1rem;
    color: #00f2fe;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.3));
}

/* Sensor Lens Pods (Asymmetric Left Panel) */
.sensors-lens {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sensor-pod {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 0.95rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-premium);
    position: relative;
    overflow: hidden;
}

.sensor-pod::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: var(--transition-premium);
}

.sensor-pod.temp-pod:hover {
    background: rgba(0, 242, 254, 0.02);
    border-color: rgba(0, 242, 254, 0.15);
}
.sensor-pod.temp-pod:hover::before {
    background: var(--color-cool);
    box-shadow: 0 0 10px var(--color-cool);
}

.sensor-pod.hum-pod:hover {
    background: rgba(139, 92, 246, 0.02);
    border-color: rgba(139, 92, 246, 0.15);
}
.sensor-pod.hum-pod:hover::before {
    background: #8b5cf6;
    box-shadow: 0 0 10px #8b5cf6;
}

.sensor-info {
    display: flex;
    flex-direction: column;
}

.sensor-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-block;
    background: linear-gradient(135deg, #a78bfa 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sensor-value {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    display: flex;
    align-items: baseline;
}

.sensor-unit {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 0.1rem;
}

.temp-pod .sensor-value {
    color: var(--color-cool);
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}
.hum-pod .sensor-value {
    color: #a78bfa;
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.15);
}

.sensor-icon-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: var(--transition-premium);
}

.temp-pod:hover .sensor-icon-circle {
    background: rgba(0, 242, 254, 0.08);
    border-color: rgba(0, 242, 254, 0.2);
    color: var(--color-cool);
    transform: scale(1.05);
}

.hum-pod:hover .sensor-icon-circle {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    transform: scale(1.05);
}

.outdoor-minimal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* CENTER STAGE: THE CONTROLLER ORB */
.center-viewport {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Airflow Breeze lines (Custom, Non-Template Component) */
.airflow-container {
    position: absolute;
    width: 450px;
    height: 450px;
    pointer-events: none;
    z-index: 1;
}

.airflow-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(0, 242, 254, 0.03);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    transition: var(--transition-premium);
}

.ac-on.ac-cool-mode .airflow-wave-1 {
    animation: rippleAir 3s infinite linear;
    border-color: rgba(0, 242, 254, 0.1);
}
.ac-on.ac-cool-mode .airflow-wave-2 {
    animation: rippleAir 3s infinite linear;
    animation-delay: 1s;
    border-color: rgba(0, 242, 254, 0.07);
}
.ac-on.ac-cool-mode .airflow-wave-3 {
    animation: rippleAir 3s infinite linear;
    animation-delay: 2s;
    border-color: rgba(0, 242, 254, 0.04);
}

/* Heat Mode animation colors */
.ac-on.ac-heat-mode .airflow-wave-1 {
    animation: rippleAir 3s infinite linear;
    border-color: rgba(255, 94, 58, 0.1);
}
.ac-on.ac-heat-mode .airflow-wave-2 {
    animation: rippleAir 3s infinite linear;
    animation-delay: 1s;
    border-color: rgba(255, 94, 58, 0.07);
}
.ac-on.ac-heat-mode .airflow-wave-3 {
    animation: rippleAir 3s infinite linear;
    animation-delay: 2s;
    border-color: rgba(255, 94, 58, 0.04);
}

@keyframes rippleAir {
    0% {
        transform: translate(-50%, -50%) scale(0.85);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.35);
        opacity: 0;
    }
}

/* The Glossy Thermostat Orb */
.orb-controller {
    position: relative;
    width: 290px;
    height: 290px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dynamic Halo Ring outer border */
.orb-halo {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: transparent;
    border: 3px solid rgba(255, 255, 255, 0.02);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
    transition: var(--transition-premium);
}

.ac-on.ac-cool-mode .orb-halo {
    border-color: rgba(0, 242, 254, 0.25);
    box-shadow: 0 0 35px rgba(0, 242, 254, 0.2), inset 0 0 15px rgba(0, 242, 254, 0.05);
}
.ac-on.ac-heat-mode .orb-halo {
    border-color: rgba(255, 94, 58, 0.25);
    box-shadow: 0 0 35px rgba(255, 94, 58, 0.2), inset 0 0 15px rgba(255, 94, 58, 0.05);
}
.ac-on.ac-dry-mode .orb-halo {
    border-color: rgba(255, 219, 0, 0.25);
    box-shadow: 0 0 35px rgba(255, 219, 0, 0.2), inset 0 0 15px rgba(255, 219, 0, 0.05);
}
.ac-on.ac-fan-mode .orb-halo {
    border-color: rgba(0, 255, 135, 0.25);
    box-shadow: 0 0 35px rgba(0, 255, 135, 0.2), inset 0 0 15px rgba(0, 255, 135, 0.05);
}

/* Realistic Glass Orb */
.orb-body {
    width: 256px;
    height: 256px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 120%, #0d1326 20%, #050811 80%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 
        inset 0 10px 30px rgba(255, 255, 255, 0.03), 
        inset 0 -15px 40px rgba(0, 0, 0, 0.9), 
        0 20px 45px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    user-select: none;
    transition: var(--transition-premium);
}

/* Glass Reflection overlay */
.orb-body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 45%, rgba(0,0,0,0.25) 100%);
    pointer-events: none;
    z-index: 5;
}

.orb-body:active {
    transform: scale(0.98);
}

.orb-temp-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
}

.orb-temp-val {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.06em;
    display: flex;
    align-items: flex-start;
    color: var(--text-primary);
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: var(--transition-premium);
}

.ac-on.ac-cool-mode .orb-temp-val {
    color: var(--color-cool);
    text-shadow: 0 0 25px rgba(0, 242, 254, 0.4);
}
.ac-on.ac-heat-mode .orb-temp-val {
    color: var(--color-heat);
    text-shadow: 0 0 25px rgba(255, 94, 58, 0.4);
}
.ac-on.ac-dry-mode .orb-temp-val {
    color: var(--color-dry);
    text-shadow: 0 0 25px rgba(255, 219, 0, 0.4);
}
.ac-on.ac-fan-mode .orb-temp-val {
    color: var(--color-fan);
    text-shadow: 0 0 25px rgba(0, 255, 135, 0.4);
}

.orb-temp-degree {
    font-size: 2.2rem;
    font-weight: 500;
    margin-top: 0.5rem;
    margin-left: 0.05rem;
}

.orb-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 0.25rem;
}

/* Semi-circular dial scale SVG container */
.orb-scale-svg {
    position: absolute;
    width: 280px;
    height: 280px;
    z-index: 0;
    pointer-events: none;
    transform: rotate(-90deg);
}

.orb-scale-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.02);
    stroke-width: 6;
}

.orb-scale-fill {
    fill: none;
    stroke: transparent;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.4s ease, stroke 0.5s ease;
}

.ac-on.ac-cool-mode .orb-scale-fill {
    stroke: var(--color-cool);
}
.ac-on.ac-heat-mode .orb-scale-fill {
    stroke: var(--color-heat);
}
.ac-on.ac-dry-mode .orb-scale-fill {
    stroke: var(--color-dry);
}
.ac-on.ac-fan-mode .orb-scale-fill {
    stroke: var(--color-fan);
}

/* Orb adjustment buttons */
.orb-adjust-btn {
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    transition: var(--transition-quick);
    /* Touch-friendly hitbox */
    min-height: 48px;
    min-width: 48px;
}

.orb-adjust-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    transform: scale(1.1);
}

.orb-adjust-btn:active {
    transform: scale(0.95);
}

.orb-minus {
    left: -50px;
}
.orb-plus {
    right: -50px;
}

/* Asymmetric Right Panel (Analytics Chart) */
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chart-lens {
    flex-grow: 1;
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.chart-canvas-wrapper {
    flex-grow: 1;
    position: relative;
    min-height: 180px;
    margin-top: 0.5rem;
}

/* Console & Simulator inputs (Left Panel) */
.console-box-lens {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.console-output-window {
    background: rgba(3, 5, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 14px;
    height: 95px;
    padding: 0.75rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    color: #e2e8f0;
    overflow-y: auto;
    white-space: pre-wrap;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.console-row {
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.console-row .time { color: var(--text-muted); margin-right: 4px; }
.console-row .ok { color: var(--color-power); }
.console-row .warn { color: var(--color-dry); }
.console-row .info { color: var(--color-cool); }

.simulator-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.input-lens-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.input-lens-wrapper label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-lens-wrapper input {
    width: 100%;
    min-width: 0;
    background: rgba(3, 5, 10, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 0.45rem 0.75rem;
    outline: none;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    transition: var(--transition-quick);
}

.input-lens-wrapper input:focus {
    border-color: var(--color-cool);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.sim-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.btn-lens {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 0.55rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--font-sans);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: var(--transition-quick);
}

.btn-lens:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.btn-lens.active-glow {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--color-power);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

/* Floating Code / Integration Lens (Right Panel) */
.code-lens-container {
    display: flex;
    flex-direction: column;
}

.code-lens-header {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 0.75rem;
}

.tab-btn-lens {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-sans);
    border-bottom: 2px solid transparent;
    transition: var(--transition-quick);
}

.tab-btn-lens.active {
    color: var(--color-cool);
    border-bottom-color: var(--color-cool);
}

.snippet-lens-wrapper {
    background: rgba(3, 5, 10, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 0.85rem;
    position: relative;
    height: 130px;
    overflow-y: auto;
}

.snippet-lens-wrapper pre {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    color: #e2e8f0;
    white-space: pre;
    line-height: 1.6;
    display: none;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.snippet-lens-wrapper pre.active {
    display: block;
}

.btn-copy-lens {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    font-size: 0.65rem;
    cursor: pointer;
    transition: var(--transition-quick);
}

.btn-copy-lens:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}


/* FLOATING CONTROL DOCK (Custom Luxury Control Dock, Anti-Template) */
.dock-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 15, 30, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 35px;
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.45), 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 100px rgba(0, 242, 254, 0.03);
    z-index: 100;
    transition: var(--transition-premium);
}

.dock-container:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.55), 
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 120px rgba(0, 242, 254, 0.08);
}

.dock-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.08);
}

/* Dock Power Heart */
.dock-power-wrapper {
    display: flex;
    align-items: center;
}

.dock-power-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.08);
    border: 1.5px solid rgba(239, 68, 68, 0.25);
    color: var(--color-power-off);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-premium);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1);
}

.dock-power-btn:hover {
    transform: scale(1.08) translateY(-2px);
    background: rgba(239, 68, 68, 0.18);
}

.dock-power-btn.active-on {
    background: rgba(16, 185, 129, 0.12);
    border-color: var(--color-power);
    color: var(--color-power);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.4), inset 0 0 5px rgba(16, 185, 129, 0.2);
    animation: heartPulse 2.5s infinite ease-in-out;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 30px rgba(16, 185, 129, 0.6); }
    100% { transform: scale(1); }
}

/* Dock Sections (Modes & Speeds) */
.dock-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dock-section-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-right: 0.25rem;
}

/* Dock buttons */
.dock-item {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.05rem;
    transition: var(--transition-premium);
}

.dock-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transform: translateY(-3px);
}

.dock-item:active {
    transform: translateY(-1px);
}

/* Active Dock Item Colors */
.dock-item.mode-cool.selected {
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--color-cool);
    color: var(--color-cool);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
}
.dock-item.mode-heat.selected {
    background: rgba(255, 94, 58, 0.1);
    border-color: var(--color-heat);
    color: var(--color-heat);
    box-shadow: 0 0 15px rgba(255, 94, 58, 0.25);
}
.dock-item.mode-dry.selected {
    background: rgba(255, 219, 0, 0.1);
    border-color: var(--color-dry);
    color: var(--color-dry);
    box-shadow: 0 0 15px rgba(255, 219, 0, 0.25);
}
.dock-item.mode-fan.selected {
    background: rgba(0, 255, 135, 0.1);
    border-color: var(--color-fan);
    color: var(--color-fan);
    box-shadow: 0 0 15px rgba(0, 255, 135, 0.25);
}

/* Fan speeds custom indicators */
.fan-dock-speed {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.65rem;
    font-weight: 600;
    transition: var(--transition-premium);
}

.fan-dock-speed:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transform: translateY(-3px);
}

.fan-dock-speed.selected {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Swing Dock Toggles */
.dock-item.swing-toggle.selected {
    background: rgba(0, 242, 254, 0.08);
    border-color: rgba(0, 242, 254, 0.3);
    color: var(--color-cool);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);
}

/* Fan Rotation animations */
.spin-slow { animation: spinFan 8s linear infinite; }
.spin-medium { animation: spinFan 4s linear infinite; }
.spin-fast { animation: spinFan 1.5s linear infinite; }

@keyframes spinFan {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar for console and guides */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Responsive Overrides - Tablet (1024px and below) */
@media (max-width: 1024px) {
    .dashboard-viewport {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-bottom: 7.5rem;
        justify-content: center;
        align-items: center;
    }

    .side-panel {
        grid-column: span 1;
        max-width: 100%;
        margin: 0 auto;
        width: 100%;
    }

    .center-viewport {
        order: -1;
        margin: 1.5rem auto;
        max-width: 100%;
        width: 100%;
    }

    .dock-container {
        width: calc(100% - 2rem);
        max-width: 100%;
        border-radius: 20px;
        padding: 0.5rem;
        gap: 0.8rem;
        overflow-x: auto;
    }

    .dock-section-label {
        display: none;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }

    .brand h1 {
        font-size: 1rem;
    }

    .system-status {
        gap: 0.5rem;
    }

    .time-display {
        font-size: 0.75rem;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .dashboard-viewport {
        padding: 1rem 1rem 6.5rem 1rem;
        gap: 1rem;
    }

    .lens-container {
        padding: 1rem;
        border-radius: 16px;
    }

    .sensor-value {
        font-size: 1.75rem;
    }

    .console-output-window {
        height: 80px;
        font-size: 0.7rem;
    }

    .chart-canvas-wrapper {
        min-height: 150px;
    }

    .dock-container {
        bottom: 16px;
        border-radius: 16px;
    }

    .dock-item,
    .fan-dock-speed {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    header {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
    }

    .brand {
        gap: 0.5rem;
        flex: 1;
    }

    .brand-icon {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .brand h1 {
        font-size: 0.95rem;
    }

    .brand p {
        font-size: 0.6rem;
    }

    .system-status {
        gap: 0.35rem;
        order: 3;
        flex: 0 0 100%;
        margin-top: 0.5rem;
    }

    .status-indicator-pill,
    .time-display {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .dashboard-viewport {
        padding: 0.75rem 0.75rem 6rem 0.75rem;
        gap: 0.75rem;
    }

    .lens-container {
        padding: 0.8rem;
        border-radius: 14px;
    }

    .lens-title {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .sensor-value {
        font-size: 1.5rem;
    }

    .sensor-unit {
        font-size: 0.8rem;
    }

    .simulator-form {
        grid-template-columns: 1fr;
    }

    .input-lens-wrapper input {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .console-output-window {
        height: 70px;
        font-size: 0.65rem;
        padding: 0.5rem;
    }

    .chart-canvas-wrapper {
        min-height: 120px;
    }

    .orb-controller {
        width: 240px;
        height: 240px;
    }

    .orb-body {
        width: 210px;
        height: 210px;
    }

    .orb-temp-val {
        font-size: 3.5rem;
    }

    .orb-temp-degree {
        font-size: 1.8rem;
    }

    .orb-label {
        font-size: 0.65rem;
    }

    .orb-adjust-btn {
        width: 30px;
        height: 30px;
        min-width: 44px;
        min-height: 44px;
    }

    .orb-minus {
        left: -35px;
    }

    .orb-plus {
        right: -35px;
    }

    .airflow-container {
        width: 380px;
        height: 380px;
    }

    .dock-container {
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 1rem);
        padding: 0.4rem;
        gap: 0.6rem;
        max-width: calc(100vw - 1rem);
        border-radius: 14px;
    }

    .dock-power-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .dock-divider {
        height: 24px;
    }

    .dock-item,
    .fan-dock-speed {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .btn-lens {
        padding: 0.4rem;
        font-size: 0.75rem;
    }

    .code-lens-header {
        gap: 0;
    }

    .tab-btn-lens {
        padding: 0.3rem 0.5rem;
        font-size: 0.65rem;
    }
}

/* Extra Small (320px and below) */
@media (max-width: 360px) {
    .brand h1 {
        font-size: 0.85rem;
    }

    .sensor-pod {
        padding: 0.75rem;
    }

    .orb-controller {
        width: 220px;
        height: 220px;
    }

    .orb-body {
        width: 190px;
        height: 190px;
    }

    .orb-temp-val {
        font-size: 3rem;
    }
}
