/**********************************************************************
 * Core Data Model and State Management Styles
 * CSS variables, theming, and base state styling
 **********************************************************************/

:root {
    --primary: #0663f9;
    --accent: #10b981;
    --bg: #0b1220;
    --panel: #0f1723;
    --card: #121d2a;
    --border: rgba(255, 255, 255, 0.08);
    --muted: #93a4b8;
    --text: #e7eef8;
    --header-bg: #0b1220;
    --footer-bg: #0b1220;
    --left-sidebar-bg: #0b1220;
    --right-sidebar-bg: #0b1220;
    --section-overview-bg: #0f1723;
    --section-machines-bg: #0f1723;
    --section-alerts-bg: #0f1723;
    --section-analytics-bg: #0f1723;
    --section-maintenance-bg: #0f1723;
    --ok: #10b981;
    --warn: #f59e0b;
    --crit: #ef4444;
    --glow: 0.35;
}

* {
    box-sizing: border-box;
}

html,
            body {
    height: 100%;
}

body {
    margin: 0;
    font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
    background:
    radial-gradient(
    1200px 800px at 15% 10%,
    rgba(6, 99, 249, 0.12),
    transparent 55%
    ),
    radial-gradient(
    900px 650px at 85% 25%,
    rgba(16, 185, 129, 0.1),
    transparent 50%
    ),
    var(--bg);
    color: var(--text);
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

.glass {
    background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
    );
    border: 1px solid var(--border);
    border-radius: 14px;
    backdrop-filter: blur(10px);
}

.card {
    background: rgba(18, 29, 42, 0.82);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.hover-glow:hover {
    box-shadow:
    0 0 0 1px rgba(6, 99, 249, 0.16),
    0 0 18px rgba(6, 99, 249, calc(var(--glow)));
}

.mono {
    font-family:
    "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
}

.scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.25);
    border-radius: 999px;
}

.scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.38);
}

@media (max-width: 1024px) {
    #rightSidebarToggle {
        display: inline-flex;
    }
}

@media (max-width: 840px) {
    #leftSidebarToggle {
        display: inline-flex;
    }
}
