/* Hugo Panel — Graphite / Sand skin
 * Visual layer only. No Google Fonts, no blur, no glow loops.
 */

:root {
    --hugo-font: "Segoe UI", "Noto Sans", "PT Sans", "Arial", "Helvetica Neue", sans-serif;
    --hugo-mono: "Cascadia Mono", "Consolas", "Courier New", ui-monospace, monospace;

    --hugo-bg-void: #101214;
    --hugo-bg-deep: #16191d;
    --hugo-bg-panel: #1b1f24;
    --hugo-accent: #c9a36a;
    --hugo-accent-2: #e2c089;
    --hugo-glow: rgba(201, 163, 106, 0.16);
    --hugo-gradient: #c9a36a;
    --hugo-border-glass: #2a3038;

    --bg-dark: #101214;
    --bg-surface: #16191d;
    --bg-card: #1b1f24;
    --bg-card-hover: #22272e;
    --bg-card-glass: #1b1f24;
    --border-color: #2a3038;
    --border-subtle: #262c33;
    --red-primary: #c9a36a;
    --red-dark: #a8864e;
    --red-glow: rgba(201, 163, 106, 0.16);
    --red-soft: rgba(201, 163, 106, 0.12);
    --text-white: #eeeae3;
    --text-secondary: #c4bfb6;
    --text-gray: #9a958c;
    --text-dim: #6f6b64;
    --shadow-card: none;
    --shadow-glow: none;
    --sidebar-bg: #121518;
    --sidebar-width: 248px;
    --panel-gutter: 16px;
    --header-bg: #16191d;
    --glass-blur: 0px;
    --glass-bg: #1b1f24;
    --glass-border: #2a3038;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 8px;
    --transition-fast: 0.12s ease;
    --overlay-bg: rgba(10, 12, 14, 0.62);
    --scrollbar-thumb: #3a4048;
    --accent-green: #6fbf9a;
    --accent-yellow: #d4b35c;
    --accent-blue: #7aa3c4;
    --accent-orange: #d4925a;
    --accent-purple: #a896c4;
    --accent-green-soft: rgba(111, 191, 154, 0.12);
    --accent-yellow-soft: rgba(212, 179, 92, 0.12);
    --accent-blue-soft: rgba(122, 163, 196, 0.12);
    --accent-purple-soft: rgba(168, 150, 196, 0.12);
}

html, body, button, input, select, textarea {
    font-family: var(--hugo-font);
}

html, body {
    font-family: var(--hugo-font);
    background: var(--bg-dark, #0b0d0f);
    background-image: none !important;
    color: var(--text-white);
}

html[data-theme="light"],
html[data-theme="light"] body {
    background: var(--bg-dark, #cfc6b6) !important;
    color: var(--text-white, #16130f);
}

body::before,
body::after,
.floating-orb,
.fog-layer,
.logo-glow,
.logo-fog,
.logo-particles {
    display: none !important;
    animation: none !important;
}

.main-content,
.content,
.dashboard,
.app-container {
    position: relative;
    z-index: 1;
}

.header,
.main-header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    background: var(--header-bg) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: none !important;
    border-radius: 16px !important;
    z-index: 1 !important;
}

.header-title,
.main-header h1,
.page-title {
    font-family: var(--hugo-font) !important;
    font-weight: 650 !important;
    letter-spacing: -0.03em;
    color: var(--text-white) !important;
    background: none !important;
    -webkit-text-fill-color: unset !important;
    text-shadow: none !important;
}

.header-time,
.header-actions {
    font-family: var(--hugo-mono);
    font-size: 0.75rem;
    color: var(--text-dim) !important;
}

.stat-card,
.chart-card,
.section-card,
.card,
.settings-card,
.panel-card,
.settings-section {
    background: var(--bg-card) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    transition: border-color 0.12s ease !important;
}

.stat-card:hover,
.chart-card:hover,
.section-card:hover,
.card:hover {
    transform: none !important;
    border-color: #3a424c !important;
    box-shadow: none !important;
}

.stat-card::before {
    height: 2px !important;
    opacity: 1 !important;
}

.stat-value {
    font-family: var(--hugo-mono) !important;
    font-weight: 500 !important;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.66rem !important;
    color: var(--text-dim) !important;
}

.table-container,
.devices-table-wrap,
.data-table-wrap {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-card);
}

thead th {
    background: #181c21 !important;
    font-size: 0.68rem !important;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-dim) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

tbody tr:hover {
    background: rgba(201, 163, 106, 0.06) !important;
}

button,
.btn,
.btn-primary,
.login-btn,
.submit-btn,
.action-btn {
    font-family: var(--hugo-font) !important;
    border-radius: 7px !important;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease !important;
}

.btn-primary,
.login-btn,
.submit-btn,
button[type="submit"] {
    background: var(--red-primary) !important;
    border: none !important;
    color: #1a1610 !important;
    font-weight: 650 !important;
    box-shadow: none !important;
}

.btn-primary:hover,
.login-btn:hover,
.submit-btn:hover,
button[type="submit"]:hover {
    filter: brightness(1.06);
    transform: none !important;
    box-shadow: none !important;
}

.btn-icon-sm,
.icon-btn {
    border-radius: 7px !important;
    border-color: var(--border-color) !important;
}

.btn-icon-sm:hover {
    border-color: var(--red-primary) !important;
    background: var(--red-soft) !important;
}

input,
select,
textarea,
.form-input,
.search-input {
    font-family: var(--hugo-font) !important;
    background: #14181c !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 7px !important;
    color: var(--text-white) !important;
}

input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: var(--red-primary) !important;
    box-shadow: 0 0 0 2px var(--red-soft) !important;
}

.settings-tab.active,
.tab-btn.active,
.chart-period-btn.active {
    background: var(--red-soft) !important;
    color: var(--red-primary) !important;
    border-color: var(--red-primary) !important;
}

.badge,
.status-badge,
.nav-item-badge {
    border-radius: 999px !important;
    font-family: var(--hugo-mono);
}

.modal-content,
.toast,
.notification-toast {
    background: var(--bg-card) !important;
    backdrop-filter: none !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
}

.login-form {
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    background: var(--bg-card) !important;
    box-shadow: none !important;
}

.login-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--red-primary);
    border-radius: 10px 10px 0 0;
}

.logo-name,
.brand-title {
    background: none !important;
    -webkit-text-fill-color: unset !important;
    color: var(--text-white) !important;
    text-shadow: none !important;
    letter-spacing: 0.18em !important;
}

.red-line-top,
.red-line-bottom {
    background: var(--red-primary) !important;
    height: 1px !important;
    opacity: 0.45;
}

#rwThemeGear {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    box-shadow: none !important;
}

#rwThemeGear:hover {
    border-color: var(--red-primary) !important;
    color: var(--red-primary) !important;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb) !important;
    border-radius: 4px !important;
}

.wing-left,
.wing-right,
.wolf-glow,
.wolf-glow--mist,
.logo-glow,
.logo-fog {
    animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* ── Login: kill old neon / wolf / blur ── */
#particles,
.fog-overlay,
.fog-layer,
.vignette,
.noise-overlay,
.cursor-glow,
.corner-decor,
.red-line-top,
.red-line-bottom,
.login-container .logo-wrapper,
.login-container .logo-glow,
.login-container .logo-scanline,
.login-container .logo-svg-container {
    display: none !important;
}

.login-container {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
}

.logo-section {
    animation: none !important;
    gap: 0 !important;
    margin-bottom: 8px !important;
}

.brand-name,
.brand-red,
.brand-white,
.glitch-text {
    color: var(--text-white) !important;
    text-shadow: none !important;
    animation: none !important;
    letter-spacing: 0.18em !important;
}

.glitch-text::before,
.glitch-text::after {
    display: none !important;
    animation: none !important;
}

.login-form {
    background: var(--bg-card) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    animation: none !important;
}

.login-form::before {
    animation: none !important;
    background: var(--red-primary) !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    height: 2px !important;
    border-radius: 10px 10px 0 0 !important;
    z-index: 1 !important;
}

.login-form::after {
    display: none !important;
}

.form-title,
.input-group,
.remember-me,
.submit-btn {
    animation: none !important;
}

.input-wrapper input {
    background: #14181c !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: none !important;
}

.input-wrapper input:focus {
    border-color: var(--red-primary) !important;
    box-shadow: 0 0 0 2px var(--red-soft) !important;
    background: #14181c !important;
}

.input-focus-line {
    display: none !important;
}

.submit-btn {
    background: var(--red-primary) !important;
    color: #1a1610 !important;
    box-shadow: none !important;
    letter-spacing: 0.12em !important;
}

.submit-btn:hover,
.submit-btn:active {
    transform: none !important;
    box-shadow: none !important;
    filter: brightness(1.06) !important;
}

.submit-btn::before {
    display: none !important;
}

.error-msg {
    background: rgba(196, 107, 107, 0.1) !important;
    border-color: rgba(196, 107, 107, 0.35) !important;
    color: #d4a0a0 !important;
}

.checkmark {
    box-shadow: none !important;
}

.checkbox-container input:checked + .checkmark {
    background: var(--red-primary) !important;
    border-color: var(--red-primary) !important;
    box-shadow: none !important;
    transform: none !important;
}

.lang-toggle {
    border-color: var(--border-color) !important;
    background: transparent !important;
    color: var(--text-gray) !important;
}

.header,
.main-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Beat per-page inline sidebar copies */
.sidebar {
    background: #14181c !important;
    border: 1px solid var(--border-color, #2a3038) !important;
    border-right: 1px solid var(--border-color, #2a3038) !important;
    box-shadow: none !important;
    border-radius: 18px !important;
    left: var(--panel-gutter, 16px) !important;
    top: var(--panel-gutter, 16px) !important;
    bottom: var(--panel-gutter, 16px) !important;
    min-height: 0 !important;
    height: auto !important;
    width: calc(var(--sidebar-width, 248px) - var(--panel-gutter, 16px)) !important;
}

.sidebar-logo .logo-wrapper {
    align-items: flex-start !important;
}

.logo-svg-container,
.logo-svg-container *,
.wolf-logo,
.wolf-art,
img.wolf-art,
.wolf-glow,
.logo-glow,
.logo-fog,
.logo-particles,
canvas.logo-particles,
#logoParticles,
.logo-separator,
.connect-logo {
    display: none !important;
    visibility: hidden !important;
    animation: none !important;
}

.logo-name {
    color: var(--text-white) !important;
    text-shadow: none !important;
    letter-spacing: 0.34em !important;
    text-transform: uppercase !important;
}

.logo-subtitle {
    color: var(--text-dim) !important;
}

.nav-item {
    border-radius: 999px !important;
}

.nav-item.active {
    background: var(--sidebar-active-bg, rgba(201, 163, 106, 0.14)) !important;
    color: var(--sidebar-active-text, #eeeae3) !important;
    border-color: rgba(201, 163, 106, 0.28) !important;
    box-shadow: none !important;
}

.nav-item.active::before {
    content: counter(hugo-nav, decimal-leading-zero) !important;
    background: none !important;
    color: var(--red-primary, #c9a36a) !important;
    box-shadow: none !important;
    width: 1.35rem !important;
    height: auto !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    border-radius: 0 !important;
}

.user-avatar {
    background: var(--red-primary) !important;
    color: #1a1610 !important;
    border-radius: 50% !important;
}

html[data-theme="light"] .stat-card,
html[data-theme="light"] .chart-card,
html[data-theme="light"] .device-card,
html[data-theme="light"] .dash-widget,
html[data-theme="light"] .hp-mkt-card,
html[data-theme="light"] .hp-mkt-thread,
html[data-theme="light"] .hp-build-card,
html[data-theme="light"] .hp-rank-card {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-white);
    box-shadow: var(--shadow-card);
}

html[data-theme="light"] .nav-item,
html[data-theme="light"] .nav-item-text,
html[data-theme="light"] .sidebar,
html[data-theme="light"] .header-title,
html[data-theme="light"] .stat-label,
html[data-theme="light"] .dash-widget-title,
html[data-theme="light"] .form-label,
html[data-theme="light"] .header-time,
html[data-theme="light"] .text-dim {
    color: var(--text-white);
}

html[data-theme="light"] .text-gray,
html[data-theme="light"] .nav-section,
html[data-theme="light"] .stat-sub,
html[data-theme="light"] .hp-head-status span {
    color: var(--text-gray) !important;
}

html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
    background: var(--input-bg) !important;
    border-color: var(--input-border) !important;
    color: var(--text-white) !important;
}

html[data-theme="light"] .table,
html[data-theme="light"] table,
html[data-theme="light"] .logs-table,
html[data-theme="light"] th,
html[data-theme="light"] td,
html[data-theme="light"] .btn:not(.btn-primary),
html[data-theme="light"] button:not(.btn-primary) {
    color: var(--text-white);
}

html[data-theme="light"] ::placeholder {
    color: var(--text-dim, #534d44) !important;
    opacity: 1;
}

html[data-theme="light"] {
    color-scheme: light;
}

html[data-theme="light"] .fog-overlay,
html[data-theme="light"] #particles {
    display: none !important;
}
