:root {
    --forum-accent-color: #38bdf8;
    --forum-icon-color: #000000;
    --forum-icon-color-dark: #ffffff;
    --forum-header-bg: color-mix(in srgb, var(--forum-accent-color, #38bdf8) 30%, #ffffff);
    --forum-footer-bg: color-mix(in srgb, var(--forum-accent-color, #38bdf8) 24%, #ffffff);
    --forum-header-dark-bg: color-mix(in srgb, var(--forum-accent-color, #38bdf8) 22%, #151521);
    --forum-footer-dark-bg: color-mix(in srgb, var(--forum-accent-color, #38bdf8) 18%, #151521);
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500;
}

#forum-top-bar {
    background-color: var(--forum-header-bg) !important;
}

#forum-footer {
    background-color: var(--forum-footer-bg) !important;
    border-color: color-mix(in srgb, var(--forum-accent-color, #38bdf8) 26%, transparent) !important;
}

.dark #forum-top-bar {
    background-color: var(--forum-header-dark-bg) !important;
}

.dark #forum-footer {
    background-color: var(--forum-footer-dark-bg) !important;
    border-color: color-mix(in srgb, var(--forum-accent-color, #38bdf8) 24%, transparent) !important;
}

body.forum-layout-narrow #forum-footer {
    max-width: 1280px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

body.forum-layout-narrow #forum-top-bar {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.forum-layout-narrow main.forum-layout-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.forum-layout-wide #forum-top-bar,
body.forum-layout-wide #forum-footer {
    max-width: none;
}

body.forum-layout-wide .forum-layout-container {
    max-width: none !important;
}

body.forum-layout-wide .forum-home-shell,
body.forum-layout-wide .custom-forum-shell {
    max-width: none !important;
    width: 100% !important;
}

html.forum-topbar-static #forum-top-bar,
body.forum-topbar-static #forum-top-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 50;
    transform: none !important;
    opacity: 1 !important;
}

#forum-topbar-spacer {
    display: none;
}

body.forum-topbar-static #forum-topbar-spacer {
    display: block;
    flex: 0 0 auto;
    height: var(--forum-topbar-height, 0px);
}

html.forum-topbar-fixed #forum-top-bar,
body.forum-topbar-fixed #forum-top-bar {
    position: sticky !important;
    top: 0 !important;
    transition: transform .24s ease, opacity .24s ease;
    will-change: transform;
}

html.forum-topbar-fixed #forum-top-bar.forum-topbar-hidden,
body.forum-topbar-fixed #forum-top-bar.forum-topbar-hidden {
    opacity: 0;
    transform: translateY(calc(-100% - 12px));
    pointer-events: none;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark .glass-effect {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.forum-main-nav a {
    white-space: nowrap;
}

.text-sky-300 {
    color: #287fa9 !important;
}

.text-slate-500 {
    color: #4478c5 !important;
}
