/* The Classic Games brand theme (gold + black). */
:root {
	--primary-rgb: 212, 163, 43;
	--theme-bg-gradient: #140f08;
}

[data-theme-mode="dark"] {
	--body-bg-rgb: 16, 12, 8;
	--body-bg-rgb2: 10, 8, 6;
	--menu-bg: #0f0b07;
	--header-bg: #0f0b07;
	--default-background: rgba(var(--primary-rgb), 0.14);
	--default-text-color-rgb: 246, 234, 206;
	--text-muted: rgba(var(--default-text-color-rgb), 0.82);
	--default-border: rgba(var(--primary-rgb), 0.25);
	--menu-border-color: rgba(var(--primary-rgb), 0.18);
	--header-border-color: rgba(var(--primary-rgb), 0.18);
	--input-border: rgba(var(--primary-rgb), 0.28);
	--form-control-bg: rgba(var(--primary-rgb), 0.08);
}

/* Give cards and highlighted surfaces a subtle gold-tinted dark background. */
.custom-card,
.card {
	background-color: rgba(31, 22, 11, 0.78);
}

.text-primary,
a {
	color: rgb(var(--primary-rgb));
}

a:hover {
	color: rgb(var(--primary-rgb));
}

/* Keep every Bootstrap modal centered during open/close animations. */
.modal .modal-dialog {
	margin-left: auto;
	margin-right: auto;
	display: flex;
	align-items: center;
	min-height: calc(100% - (var(--bs-modal-margin, 1rem) * 2));
}

/* Alert color semantics: success green, error red, warning yellow. */
.alert-success {
	color: #d1f7df;
	background-color: rgba(25, 135, 84, 0.28);
	border-color: rgba(25, 135, 84, 0.55);
}

.alert-danger {
	color: #ffd6dc;
	background-color: rgba(220, 53, 69, 0.24);
	border-color: rgba(220, 53, 69, 0.5);
}

.alert-warning {
	color: #fff4cf;
	background-color: rgba(255, 193, 7, 0.24);
	border-color: rgba(255, 193, 7, 0.52);
}

/* Sidebar: allow desktop-dark logo to use full header height safely. */
.app-sidebar .main-sidebar-header .header-logo {
	height: 100%;
	display: inline-flex;
	align-items: center;
	overflow: hidden;
}

.app-sidebar .main-sidebar-header .header-logo .desktop-dark {
	height: 100%;
	width: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
