body {
    margin: 0;
    padding: 0;
    background-color: #09090b; /* Zinc 950 */
    color: #f4f4f5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
}

::-webkit-scrollbar {width: 10px;}
::-webkit-scrollbar-track {background: #09090b;}
::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 5px;
    border: 2px solid #09090b;
}
::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

.glass-card {
    background: rgba(24, 24, 27, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid #27272a;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Connection Indicator */
.connection-indicator {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.connection-indicator.connected {
    background: rgba(16, 185, 129, 0.1);
    color: #059669; /* emerald-500 */
    border: 2px solid #059669;
}

.connection-indicator.disconnected {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444; /* rose-500 */
    border: 2px solid #ef4444;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-dot.green {
    background: #059669;
}

.status-dot.red {
    background: #ef4444;
}

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

.stat-card {
    /* Updated background color from slate to zinc */
    background: #151515;
    border: 1px solid rgba(39, 39, 42, 0.6); /* zinc-800 */
    border-radius: 12px;
    padding: 16px;
    border-left: 4px solid #ffffff; /* Default left border set to Battery Amber */
}

.stat-label {
    font-size: 0.75rem;
    color: #71717a;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.card {
    background: #151515;
    border: 1px solid rgba(39, 39, 42, 0.6); /* zinc-800 */
    border-radius: 12px;
    padding: 16px;
}

.data-value {
    font-size: 1.3rem;
    font-weight: bold;
}

.data-label {
    font-size: 0.875rem;
    color: #8d8d93;
    text-transform: uppercase;
}

#canvas-container {
    width: 100%;
    height: 400px;
    background: #151515;
    border: 1px solid rgba(39, 39, 42, 0.6); /* zinc-800 */
    border-radius: 12px;
    overflow: hidden;
}

.suspension-bar {
    width: 44px;
    height: 200px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.suspension-fill {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #38bdf8;
    border-radius: 16px;
    transition: height 0.3s ease;
}

.steering-wheel {
    width: 150px;
    height: 150px;
    border: 4px solid #2da6d9;
    border-radius: 50%;
    position: relative;
    transition: transform 0.3s ease;
    background: radial-gradient(circle, rgba(75, 75, 75, 0.2), transparent);
}

.steering-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 64px;
    background: #dddddd;
    border-radius: 2px;
    transform-origin: bottom center;
    transform: translate(-50%, -100%);
}

.imu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.imu-data-item {
    background: rgba(39, 39, 42, 0.4);
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 3px solid #ffffff;
}

.chart-container {
    position: relative;
    height: 250px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quaternion-display {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}