/*!
 * MuRosario Dark Fantasy Theme
 * Palette based on logo_murosario.jpg
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
	--bg-primary: #0a0a0f;
	--bg-secondary: #111118;
	--bg-panel: #161822;
	--bg-panel-header: #111320;
	--bg-input: #1a1c2a;
	--border-color: rgba(218, 175, 60, 0.18);
	--border-subtle: rgba(255, 255, 255, 0.06);
	--gold: #dab23c;
	--gold-light: #f5d96a;
	--gold-dark: #8a6a28;
	--bronze: #b08530;
	--steel: #7a7e8e;
	--text-primary: #c5c5cd;
	--text-secondary: #686a7a;
	--text-white: #e8e8ee;
	--green-online: #44dd44;
	--red-accent: #cc3333;
	--shadow: rgba(0, 0, 0, 0.5);
}

/* ============================================
   BASE & BODY
   ============================================ */
html {
	background: var(--bg-primary);
}

body {
	color: var(--text-primary);
	background: var(--bg-primary) url('../img/background.jpg?v=3') no-repeat top center !important;
	background-size: cover !important;
	background-attachment: fixed !important;
}

a {
	color: var(--gold);
}
a:hover {
	color: var(--gold-light) !important;
}
a:focus, a:hover {
	color: var(--gold-light) !important;
}

::selection {
	background: var(--gold);
	color: #000;
}

/* ============================================
   GLOBAL TOP BAR
   ============================================ */
.global-top-bar {
	background: #08080c;
	border-bottom: 1px solid var(--border-subtle);
}
.global-top-bar a {
	color: var(--text-secondary) !important;
}
.global-top-bar a:hover {
	color: var(--gold-light) !important;
}
.global-top-bar a.logout {
	color: var(--red-accent) !important;
}
.global-top-bar-separator {
	color: #333;
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
	background: rgba(10, 10, 16, 0.85);
	border-bottom: 1px solid var(--border-color);
}
#navbar ul li a {
	color: var(--steel) !important;
	letter-spacing: 1px;
	font-size: 14px;
}
#navbar ul li a:hover,
#navbar ul li a:active,
#navbar ul li a:focus {
	color: var(--gold-light) !important;
	text-shadow: 0 0 15px rgba(212, 168, 50, 0.4);
}

/* ============================================
   HEADER INFO (online count, server time, social)
   ============================================ */
.header-info-container .header-info {
	background: rgba(10, 10, 18, 0.7);
	border: 1px solid var(--border-color);
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(212, 168, 50, 0.03);
}
.header-info-container .header-info .header-info-block {
	color: var(--text-secondary);
}
.header-info-container .header-info .header-info-block .online-count {
	color: var(--green-online) !important;
	text-shadow: 0 0 8px rgba(68, 221, 68, 0.4);
}
.header-info-container .header-info .header-info-block #tServerTime,
.header-info-container .header-info .header-info-block #tLocalTime {
	color: var(--gold-light);
}
.header-info-container .header-info .header-info-block #tServerDate,
.header-info-container .header-info .header-info-block #tLocalDate {
	color: var(--text-secondary);
}

/* Online bar */
.webengine-online-bar {
	background: #0a0a10;
	border: 1px solid var(--gold-dark);
}
.webengine-online-bar .webengine-online-bar-progress {
	background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
	box-shadow: 0 0 8px rgba(212, 168, 50, 0.5);
}

/* ============================================
   CONTAINER & CONTENT
   ============================================ */
#container {
	background: var(--bg-secondary);
	border: 1px solid var(--border-subtle);
	border-top: 2px solid var(--gold-dark);
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
	background: #0a0a10;
	color: var(--text-secondary);
	border-top: 1px solid var(--border-color);
}
.footer hr {
	border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.footer a {
	color: var(--text-secondary) !important;
}
.footer a:hover {
	color: var(--gold-light) !important;
}

/* ============================================
   PAGE TITLE
   ============================================ */
.page-title {
	color: var(--gold) !important;
	text-shadow: 0 0 20px rgba(212, 168, 50, 0.2);
	border-bottom: 2px solid var(--gold-dark);
	padding-bottom: 8px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
	color: var(--gold) !important;
	background-color: transparent !important;
	border-color: var(--gold) !important;
	border-radius: 3px !important;
}
.btn-primary:active,
.btn-primary:focus,
.btn-primary:hover {
	color: #000 !important;
	background-color: var(--gold) !important;
	border-color: var(--gold) !important;
	box-shadow: 0 0 12px rgba(212, 168, 50, 0.4);
}

/* ============================================
   FORMS & INPUTS
   ============================================ */
.form-control {
	background: var(--bg-input) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	color: var(--text-primary) !important;
}
.form-control:focus {
	border: 1px solid var(--gold-dark) !important;
	box-shadow: 0 0 5px rgba(212, 168, 50, 0.2) !important;
}
input[type=text], input[type=password], input[type=number] {
	background: var(--bg-input);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--text-primary);
}
input[type=text]:focus, input[type=password]:focus, input[type=number]:focus {
	border: 1px solid var(--gold-dark);
}
.help-block {
	color: var(--text-secondary) !important;
}
label, .control-label {
	color: var(--text-primary) !important;
}

/* ============================================
   NEWS MODULE
   ============================================ */
.panel-news {
	color: var(--text-primary);
	background: var(--bg-panel);
	border: 1px solid var(--border-color) !important;
	margin-bottom: 30px;
}
.panel-news .panel-heading {
	background: var(--bg-panel-header);
	border-bottom: 1px solid var(--border-color);
}
.panel-news .panel-title {
	color: var(--gold) !important;
}
.panel-news .panel-body {
	color: var(--text-primary);
}
.panel-news .panel-footer {
	background: var(--bg-panel-header);
	border-top: 1px solid var(--border-subtle) !important;
	color: var(--text-secondary);
}

/* ============================================
   SIDEBAR PANELS
   ============================================ */
.panel-sidebar {
	background: var(--bg-panel) !important;
	border: 1px solid var(--border-color) !important;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.3) !important;
}
.panel-sidebar > .panel-heading {
	background: var(--bg-panel-header) !important;
	color: var(--gold) !important;
	border-bottom: 2px solid var(--gold-dark) !important;
}
.panel-sidebar > .panel-heading .panel-title {
	color: var(--gold) !important;
}
.panel-sidebar .panel-body {
	color: var(--text-primary);
}
.panel-sidebar .panel-body .table td {
	color: var(--text-primary);
	border-bottom: 1px solid var(--border-subtle) !important;
}

/* Sidebar login form */
.panel-sidebar .panel-body .form-control {
	background: var(--bg-input) !important;
}

/* Sidebar banners */
.sidebar-banner img {
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.5) !important;
	border: 1px solid var(--border-color) !important;
}

/* ============================================
   TABLES (Bootstrap overrides)
   ============================================ */
.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > thead > tr > th {
	border-top: none !important;
	border-bottom: 1px solid var(--border-subtle) !important;
	color: var(--text-primary);
}
.table > thead > tr > th {
	color: var(--gold) !important;
	border-bottom: 2px solid var(--gold-dark) !important;
}
.table-striped > tbody > tr:nth-of-type(odd) {
	background-color: rgba(255, 255, 255, 0.02) !important;
}
.table-hover > tbody > tr:hover {
	background-color: rgba(212, 168, 50, 0.05) !important;
}
.table-bordered {
	border: 1px solid var(--border-subtle) !important;
}
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > td {
	border: 1px solid var(--border-subtle) !important;
}

/* ============================================
   RANKINGS MODULE
   ============================================ */
.rankings-table tr td {
	border-bottom: 1px solid var(--border-subtle) !important;
	color: var(--text-primary);
}
.rankings-table-place {
	color: var(--gold);
}
.rankings-table tr:first-child td {
	color: var(--gold-light) !important;
	border-bottom: 2px solid var(--gold) !important;
}
.rankings-update-time {
	color: var(--text-secondary);
}
.rankings_menu a {
	background: var(--bg-panel) !important;
	border: 1px solid var(--border-subtle) !important;
	color: var(--text-secondary) !important;
}
.rankings_menu a.active {
	color: var(--gold) !important;
	border-color: var(--gold) !important;
}
.rankings_menu span {
	color: var(--text-secondary);
}

/* ============================================
   MY ACCOUNT MODULE
   ============================================ */
.myaccount-table {
	background: var(--bg-panel) !important;
	border: 1px solid var(--border-color) !important;
}
.myaccount-table tr td {
	border-bottom: 1px solid var(--border-subtle) !important;
	color: var(--text-primary);
}
.myaccount-table tr td:first-child {
	color: var(--gold);
}

/* ============================================
   GENERAL TABLE UI
   ============================================ */
.general-table-ui {
	background: var(--bg-panel) !important;
	border: 1px solid var(--border-color) !important;
}
.general-table-ui tr:first-child td {
	color: var(--gold) !important;
}
.general-table-ui tr:nth-child(2n+2) td {
	background: rgba(255, 255, 255, 0.02) !important;
}

/* ============================================
   PANEL GENERAL & BODY TITLE
   ============================================ */
.panel-general {
	background: var(--bg-panel) !important;
	border: 1px solid var(--border-color) !important;
	color: var(--text-primary);
}
.panel-body .panel-title {
	color: var(--gold) !important;
	border-bottom: 1px solid var(--border-color) !important;
}

/* ============================================
   USERCP PANEL
   ============================================ */
.panel-usercp {
	background: var(--bg-panel) !important;
}
.panel-usercp ul li a {
	color: var(--text-primary) !important;
}
.panel-usercp ul li a:active,
.panel-usercp ul li a:hover {
	color: var(--gold) !important;
}

/* ============================================
   DOWNLOADS MODULE
   ============================================ */
.panel-downloads {
	background: var(--bg-panel) !important;
	border: 1px solid var(--border-color) !important;
	color: var(--text-primary);
}
.download-description {
	color: var(--text-secondary);
}

/* ============================================
   ADD STATS MODULE
   ============================================ */
.panel-addstats {
	background: var(--bg-panel) !important;
	border: 1px solid var(--border-color) !important;
	color: var(--text-primary);
}
.panel-addstats .character-name {
	color: var(--gold) !important;
	border-bottom: 1px solid var(--border-color) !important;
}

/* ============================================
   TERMS OF SERVICE
   ============================================ */
.tos_list li {
	color: var(--gold) !important;
}
.tos_list li p {
	color: var(--text-primary);
}

/* ============================================
   PAYPAL MODULE
   ============================================ */
.paypal-gateway-content {
	background: var(--bg-panel) !important;
	border: 2px solid var(--gold-dark) !important;
	color: var(--text-primary);
}
.paypal-gateway-conversion-rate {
	color: var(--text-white) !important;
}
.paypal-gateway-form div {
	color: var(--text-white) !important;
}

/* ============================================
   CHARACTER BLOCKS
   ============================================ */
.myaccount-character-block {
	background: var(--bg-panel) !important;
	border: 1px solid var(--border-color) !important;
}
.myaccount-character-block-location {
	color: var(--text-secondary) !important;
}
.myaccount-character-name a {
	color: var(--gold) !important;
}

/* ============================================
   RANKINGS CLASS FILTER
   ============================================ */
.rankings-class-filter-selection {
	color: var(--text-secondary) !important;
}
.rankings-class-filter-selection:hover {
	color: var(--gold) !important;
}

/* ============================================
   THUMBNAILS
   ============================================ */
.thumbnail {
	background-color: var(--bg-panel) !important;
	border: 1px solid var(--border-color) !important;
}
a.thumbnail:hover,
a.thumbnail:focus,
a.thumbnail.active {
	border-color: var(--gold) !important;
}

/* ============================================
   ALERTS (Bootstrap)
   ============================================ */
.alert-danger {
	background-color: rgba(180, 40, 40, 0.15) !important;
	border-color: rgba(180, 40, 40, 0.3) !important;
	color: #ff6666 !important;
}
.alert-success {
	background-color: rgba(40, 160, 40, 0.15) !important;
	border-color: rgba(40, 160, 40, 0.3) !important;
	color: #66ff66 !important;
}
.alert-warning {
	background-color: rgba(212, 168, 50, 0.15) !important;
	border-color: rgba(212, 168, 50, 0.3) !important;
	color: var(--gold-light) !important;
}
.alert-info {
	background-color: rgba(50, 120, 200, 0.15) !important;
	border-color: rgba(50, 120, 200, 0.3) !important;
	color: #88bbff !important;
}

/* ============================================
   MISC OVERRIDES
   ============================================ */
.webengine-powered {
	color: var(--text-secondary) !important;
}
.webengine-powered:active,
.webengine-powered:hover {
	color: var(--gold) !important;
}

/* Module info/tutorials custom pages */
h3, h4 {
	color: var(--gold);
}

strong {
	color: var(--text-white);
}

/* Scrollbar */
::-webkit-scrollbar {
	width: 8px;
}
::-webkit-scrollbar-track {
	background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
	background: var(--gold-dark);
	border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
	background: var(--gold);
}

/* AdminCP button */
.admincp-button {
	background: var(--bg-panel) !important;
	border: 2px solid var(--gold) !important;
	color: var(--gold) !important;
}

/* ============================================
   ACCESSIBILITY - Contrast fixes
   ============================================ */
.global-top-bar span,
.global-top-bar-separator {
	color: #aaa !important;
}
.global-top-bar strong {
	color: #e0e0e0 !important;
}
.table td,
.panel-body,
.form-control {
	color: #c5c5cd;
}
.header-info-block .text-left {
	color: #b0b0b8;
}

/* WebP background override */
body {
	background-image: url('../img/background.webp') !important;
}
