/* ==========================================================================
   Global shell — overrides Materialize defaults for a modern look.
   Uses the same design tokens defined in logstyle.css (:root vars),
   with safe fallbacks in case this file loads first.
   ========================================================================== */

:root {
	--bg-app: #16171a;
	--bg-panel: #1e1f23;
	--bg-panel-raised: #26272c;
	--border-subtle: rgba(255, 255, 255, 0.06);
	--border-strong: rgba(255, 255, 255, 0.1);
	--text-primary: #f2f3f5;
	--text-secondary: #b7b9c2;
	--text-muted: #83858e;
	--accent: #6843ce;
	--accent-hover: #7d5ce0;
	--accent-soft: rgba(104, 67, 206, 0.14);
	--accent-soft-border: rgba(104, 67, 206, 0.3);
	--radius-md: 10px;
	--radius-lg: 16px;
	--shadow-md: 0 8px 24px rgba(0, 0, 0, 0.28);
	--shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
	--font-body: "Inter", "Whitney", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--font-display: "Space Grotesk", "Inter", sans-serif;
}

/* Material Icons render via font ligatures — the glyph is backed by literal
   text like "search_off". Without this, that text is selectable/copyable,
   which is what triggers the OS text-selection popup on long-press. */
.material-icons {
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
}

/* Same treatment for nav chrome and buttons in general — these are controls,
   not content, so they shouldn't behave like selectable body text. */
nav,
.btn,
.my-button,
.brand-logo,
.brand-wordmark,
.nav-icon,
#dropdown1,
#nav-mobile,
.pagination {
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
}

html {
	background-color: var(--bg-app);
}

/* Materialize ships a bare `a { color: #039be5 }` (its default link blue).
   This file loads last, so this reset reliably wins that specificity tie
   and keeps untouched links themed, without needing !important sprinkled
   on every individual selector. */
a {
	color: #a78bfa;
}

body {
	background-color: var(--bg-app);
	background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
		radial-gradient(1100px 600px at 15% -10%, rgba(104, 67, 206, 0.14), transparent 60%),
		radial-gradient(900px 500px at 100% 0%, rgba(104, 67, 206, 0.08), transparent 55%);
	background-size: 26px 26px, auto, auto;
	background-attachment: fixed;
	color: var(--text-primary);
	font-family: var(--font-body);
}

.nav-dash,
.dash-content {
	padding-left: 300px;
}

@media only screen and (max-width: 992px) {

	.nav-dash,
	.dash-content {
		padding-left: 0;
	}
}

/* ==========================================================================
   Navbar
   ========================================================================== */

nav {
	background-color: rgba(20, 21, 24, 0.75) !important;
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	box-shadow: 0 1px 0 var(--border-subtle);
	height: 60px;
	line-height: 60px;
}

.navbar-fixed {
	height: 60px;
}

.navbar-fixed nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 997;
}

nav .nav-wrapper {
	height: 60px;
	line-height: 60px;
}

nav .brand-logo {
	color: var(--text-primary);
	font-family: var(--font-display);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.brand-wordmark {
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--text-primary);
}

nav .brand-logo#dash i.material-icons,
nav a#dash {
	color: var(--text-secondary);
	transition: color .15s ease, transform .15s ease;
}

nav a#logo-container:hover i.material-icons {
	color: var(--accent);
	transform: translateY(-1px);
}

nav ul a {
	color: var(--text-secondary);
	font-weight: 500;
	transition: color .15s ease;
}

nav ul a:hover {
	color: var(--text-primary);
	background-color: transparent;
}

nav ul a i.material-icons {
	color: inherit;
}

.nav-icon {
	vertical-align: middle;
	margin-left: 10px;
	border: 2px solid var(--border-strong);
}

#dropdown1 {
	background-color: var(--bg-panel-raised) !important;
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg);
	padding: 6px;
	min-width: 160px !important;
	overflow: hidden;
}

#dropdown1 li {
	min-height: 0 !important;
}

#dropdown1 li>a,
#dropdown1 li>span {
	display: flex !important;
	align-items: center;
	gap: 10px;
	color: var(--text-secondary) !important;
	font-size: 14px !important;
	font-weight: 500;
	border-radius: 6px;
	padding: 9px 12px !important;
	line-height: normal !important;
	min-height: 0 !important;
	transition: background-color .15s ease, color .15s ease;
}

#dropdown1 li>a i.material-icons {
	font-size: 18px;
	color: var(--text-muted);
	transition: color .15s ease;
}

#dropdown1 li>a:hover,
#dropdown1 li.active>a {
	background-color: rgba(255, 255, 255, 0.06) !important;
	color: var(--text-primary) !important;
}

#dropdown1 .divider {
	background-color: var(--border-subtle) !important;
	margin: 4px 0;
}

/* Logout gets its own accent so it reads as a distinct, deliberate action */
.dropdown-logout {
	color: var(--text-secondary) !important;
}

.dropdown-logout i.material-icons {
	color: var(--text-muted);
}

#dropdown1 .dropdown-logout:hover,
#nav-mobile .dropdown-logout:hover {
	background-color: var(--danger-soft, rgba(237, 66, 69, 0.14)) !important;
	color: #f28b8d !important;
}

#dropdown1 .dropdown-logout:hover i.material-icons,
#nav-mobile .dropdown-logout:hover i.material-icons {
	color: #f28b8d;
}

#nav-mobile {
	background-color: var(--bg-panel) !important;
}

#nav-mobile .user-view .background {
	background-color: var(--bg-panel-raised) !important;
}

#nav-mobile li>a {
	display: flex !important;
	align-items: center;
	gap: 10px;
	color: var(--text-secondary) !important;
	border-radius: 6px;
	transition: background-color .15s ease, color .15s ease;
}

#nav-mobile li>a:hover {
	background-color: rgba(255, 255, 255, 0.06) !important;
	color: var(--text-primary) !important;
}

#nav-mobile .divider {
	background-color: var(--border-subtle) !important;
}

#nav-dash {
	background-color: var(--bg-panel);
}

/* push content below the fixed navbar */
.entry,
main {
	margin-top: 60px;
}

/* ==========================================================================
   Buttons (Materialize .btn overrides)
   ========================================================================== */

.btn,
.btn-large,
.btn-small {
	background-color: var(--accent);
	border-radius: var(--radius-md);
	font-family: var(--font-body);
	font-weight: 600;
	letter-spacing: .01em;
	text-transform: none;
	box-shadow: none;
	transition: background-color .15s ease, transform .1s ease, box-shadow .15s ease;
}

.btn:visited {
	background-color: var(--accent);
}

.btn:hover,
.btn-large:hover,
.btn-small:hover {
	background-color: var(--accent-hover);
	box-shadow: 0 6px 16px rgba(104, 67, 206, 0.35);
	transform: translateY(-1px);
}

.btn:focus,
.btn-large:focus,
.btn-small:focus {
	background-color: var(--accent-hover);
}

.my-button {
	margin: 6px;
	background-color: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--border-subtle);
	color: var(--text-primary) !important;
}

.my-button:hover {
	background-color: var(--accent);
	border-color: var(--accent);
	box-shadow: 0 6px 16px rgba(104, 67, 206, 0.3);
}

#dashbots {
	font-family: var(--font-display), cursive;
	font-weight: 700;
	letter-spacing: -0.02em;
	background: linear-gradient(135deg, #a78bfa, var(--accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	user-select: none;
}

@media (max-width: 435px) {
	#dashbots {
		font-size: 13vw;
	}
}

.discord {
	color: var(--accent);
}

/* ==========================================================================
   Home / 404 / 401 card
   ========================================================================== */

#main-card,
#log-card {
	background: linear-gradient(180deg, var(--bg-panel-raised), var(--bg-panel));
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	padding: 48px 40px;
	max-width: 560px;
}

#main-card h5,
#log-card h5 {
	color: var(--text-secondary) !important;
	font-weight: 400;
	margin-bottom: 0;
}

.home-features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin: 28px 0 26px;
	text-align: left;
}

@media (max-width: 640px) {
	.home-features {
		grid-template-columns: 1fr;
	}
}

.home-feature {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	background: var(--bg-app);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	transition: border-color .15s ease, transform .15s ease;
}

.home-feature:hover {
	border-color: var(--accent-soft-border);
	transform: translateY(-2px);
}

.home-feature__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: var(--accent-soft);
	border-radius: var(--radius-sm, 8px);
}

.home-feature__icon i.material-icons {
	font-size: 19px;
	color: #a78bfa;
}

.home-feature__title {
	font-weight: 600;
	font-size: 14px;
	color: var(--text-primary);
}

.home-feature__desc {
	margin-top: 3px;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--text-muted);
}

.home-cta {
	width: 100%;
	height: 44px;
	line-height: 44px;
	font-size: 14.5px;
}

.home-cta i.material-icons {
	font-size: 18px;
	margin-left: 6px;
}

.home-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid var(--border-subtle);
}

.home-links .btn {
	height: 34px;
	line-height: 34px;
	padding: 0 14px;
	font-size: 12.5px;
	border-radius: var(--radius-pill);
}

.home-links .btn i.material-icons {
	font-size: 16px;
	margin-right: 6px;
}

.vertical-align-middle {
	margin: 0px;
	padding: 0px;
	float: left;
	position: absolute;
	top: 50%;
	transform: translateY(-50%) translateX(-50%);
	left: 50%;
	width: 92%;
	max-width: 560px;
}

.home-align.vertical-align-middle {
	max-width: 640px;
}

.home-hero {
	max-width: 640px !important;
	padding: 46px 48px !important;
}

.home-eyebrow {
	display: inline-block;
	margin-bottom: 18px;
	padding: 5px 12px;
	background: var(--accent-soft);
	border: 1px solid var(--accent-soft-border);
	border-radius: var(--radius-pill);
	color: #cabbf8;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
}

@media (max-width: 640px) {
	.home-hero {
		padding: 36px 26px !important;
	}
}

.icon-block {
	padding: 0 15px;
}

.icon-block .material-icons {
	font-size: inherit;
}
