/* ===== BrasilMU Season 22 - tema sobre o style.css original ===== */
:root {
	--gold: #e8c26a;
	--gold-hi: #ffe9a8;
	--ember: #ff6a1a;
	--ember-dk: #b0641a;
	--bg0: #0a0806;
	--bg1: #120e0a;
	--panel: rgba(18, 14, 10, .82);
	--line: rgba(232, 194, 106, .22);
	--line-hi: rgba(232, 194, 106, .55);
	--text: #e9e6df;
	--muted: #9a9080;
}

html, body { background: var(--bg0); }
body {
	font-family: "Segoe UI", Tahoma, sans-serif;
	color: var(--text);
}

.dashboard {
	position: relative;
	width: var(--dashboard-width, 340px);
	height: var(--dashboard-height, 560px);
	box-sizing: border-box;
	margin: 0;
	border: 1px solid var(--line-hi);
	background:
		radial-gradient(120% 60% at 50% -10%, rgba(255, 106, 26, .28), transparent 60%),
		radial-gradient(90% 50% at 50% 110%, rgba(232, 194, 106, .12), transparent 70%),
		linear-gradient(180deg, #17110b 0%, var(--bg0) 100%);
	box-shadow: inset 0 0 40px rgba(0, 0, 0, .8);
	overflow: hidden;
}
/* brasas flutuando */
.dashboard::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image:
		radial-gradient(1.5px 1.5px at 20% 80%, rgba(255, 140, 50, .8), transparent),
		radial-gradient(1px 1px at 70% 60%, rgba(255, 200, 120, .7), transparent),
		radial-gradient(1.5px 1.5px at 85% 90%, rgba(255, 106, 26, .8), transparent),
		radial-gradient(1px 1px at 40% 70%, rgba(255, 220, 150, .6), transparent);
	background-size: 100% 100%;
	animation: s22-embers 9s linear infinite;
	opacity: .7;
}
@keyframes s22-embers { from { transform: translateY(20px); opacity: 0; } 20% { opacity: .8; } to { transform: translateY(-260px); opacity: 0; } }

/* ---------- header ---------- */
#header {
	position: relative;
	width: auto; height: 50px;
	margin: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
	border-bottom: 1px solid var(--line);
	cursor: move;
}
#header::after {
	content: ""; position: absolute; left: 10%; right: 10%; bottom: -1px; height: 1px;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
#logo {
	position: absolute; left: 10px; top: 6px;
	width: 38px; height: 38px; margin: 0;
	background: url('../images/logo_s22.png') no-repeat center / contain;
	filter: drop-shadow(0 0 6px rgba(255, 106, 26, .6));
}
.s22-title { position: absolute; left: 54px; top: 8px; line-height: 1; }
.s22-title b {
	display: block; font-family: Cinzel, "Trajan Pro", Georgia, serif; font-size: 17px; letter-spacing: 1px;
	background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--ember-dk));
	-webkit-background-clip: text; color: transparent;
}
.s22-title span { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--ember); }

a#button-open, a#button-close, a#button-open:hover, a#button-close:hover {
	position: absolute; top: 14px; margin: 0;
	width: 22px; height: 22px; border-radius: 4px;
	border: 1px solid var(--line); background: rgba(0, 0, 0, .4) none;
	color: var(--gold); text-decoration: none; text-align: center; line-height: 22px; font-size: 12px;
	transition: all .15s;
}
a#button-open, a#button-open:hover { right: 38px; width: 37px; height: 22px; border: 0; background: url("../images/btn_open.png") no-repeat center / 100% 100%; }
a#button-close { right: 10px; }
a#button-close::before { content: "\2715"; }
a#button-open:hover { background-image: url("../images/btn_open_hover.png"); filter: drop-shadow(0 0 4px rgba(232,194,106,.6)); }
a#button-close:hover { border-color: #ff3b2f; color: #fff; background: rgba(255, 59, 47, .5); }

/* ---------- status (relogio + proximo evento) ---------- */
#s22-status {
	position: relative; display: flex; gap: 6px; margin: 8px 10px 0; height: 38px;
}
.s22-clock, .s22-next {
	border: 1px solid var(--line); border-radius: 6px; background: var(--panel);
	display: flex; flex-direction: column; justify-content: center; padding: 0 8px;
}
.s22-clock { flex-direction: row; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.s22-clock i { color: var(--gold); }
.s22-clock small { font-size: 8px; color: var(--muted); letter-spacing: 1px; }
.s22-next { flex: 1; min-width: 0; }
.s22-next small { font-size: 8px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.s22-next span { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s22-next em { font-style: normal; color: var(--gold); float: right; font-variant-numeric: tabular-nums; }
.s22-next.soon { border-color: var(--ember); animation: s22-pulse 1.2s ease-in-out infinite; }
.s22-next.soon em { color: var(--ember); }
@keyframes s22-pulse { 50% { box-shadow: 0 0 12px rgba(255, 106, 26, .55); } }

/* ---------- container ---------- */
#container {
	position: relative; box-sizing: border-box;
	width: auto; height: 380px; margin: 8px 10px 0; padding: 8px 6px 8px 8px;
	border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
}
#users-list, #events-list, #settings-list, #links-list {
	position: relative; box-sizing: border-box;
	width: 100%; max-width: none; min-width: 0;
	height: 362px; max-height: none; min-height: 0;
	margin: 0; padding: 0 4px 0 0;
	overflow-y: auto; overflow-x: hidden;
	font-family: "Segoe UI", Tahoma, sans-serif;
}
#settings-list, #links-list { overflow-y: auto; }

/* ---------- personagens ---------- */
/* So o card externo; barras/imagens internas ficam com o estilo original do global.js */
#load-characters { width: 100%; border-spacing: 0 4px; }
#load-characters > tbody > tr > td { padding: 0 2px 0 0; }
#load-characters > tbody > tr > td > div {
	box-sizing: border-box; width: 100%;
	border-radius: 8px;
	background: linear-gradient(135deg, rgba(232, 194, 106, .10), rgba(0, 0, 0, .35));
	border: 1px solid var(--line);
	transition: border-color .15s, box-shadow .15s;
}
#load-characters > tbody > tr > td > div {
	width: 100% !important; height: auto !important; min-height: 0;
	padding: 4px 0 4px 18px !important; overflow: visible;
}
/* conteudo original foi feito para 219px: amplia para ocupar o card maior */
#load-characters > tbody > tr > td > div > table { zoom: 0.92; margin: 0 auto; }
#load-characters > tbody > tr > td > div:hover { border-color: var(--line-hi); box-shadow: 0 0 10px rgba(232, 194, 106, .15); }
#users-list table tr td div table tr td:nth-child(2) a {
	position: relative; margin: 0; padding: 4px 10px; border-radius: 4px; font-size: 11px;
	background: linear-gradient(180deg, #d96a1a, #8a3a0a); color: #fff3c4; border: 1px solid var(--ember);
}
#users-list table tr td div table tr td:nth-child(2) a:hover { filter: brightness(1.2); }
#users-list img { image-rendering: auto; }

/* ---------- eventos ---------- */
.events-list-button { display: none; }
#events-list > a.button-event {
	position: static; display: inline-flex; float: left;
	box-sizing: border-box; width: 23.5%; height: 24px; margin: 0 2% 6px 0;
	border: 1px solid var(--line); border-radius: 5px; background: rgba(0, 0, 0, .35);
	color: var(--muted); font-size: 11px; font-family: inherit;
}
#events-list > a.button-event:nth-child(5) { margin-right: 0; }
#events-list > a.button-event:hover { color: var(--gold-hi); border-color: var(--line-hi); background: rgba(232, 194, 106, .08); }
#events-list > a.button-event.active { color: var(--bg0); background: linear-gradient(180deg, var(--gold-hi), var(--gold)); border-color: var(--gold); font-weight: 600; }
#c_events { clear: both; width: 100% !important; margin: 0 !important; border-spacing: 0 3px; }
#c_events tr td { font-size: 11.5px; color: var(--text); padding: 3px 4px; background: rgba(255, 255, 255, .03); }
#c_events tr td:nth-child(2) { border-radius: 4px 0 0 4px; padding-left: 8px; }
#c_events tr td:last-child { border-radius: 0 4px 4px 0; }
#c_events tr:hover td { background: rgba(232, 194, 106, .08); }
.time-off, .time-on { display: inline-block; min-width: 50px; text-align: center; font-variant-numeric: tabular-nums; font-size: 11px; }
.time-off { background: rgba(0, 0, 0, .45); color: var(--gold); border: 1px solid var(--line); }
.time-on { background: linear-gradient(180deg, var(--ember), #a83a0a); color: #fff; border: 1px solid var(--ember); box-shadow: 0 0 8px rgba(255, 106, 26, .6); }
.fa-volume-off { color: var(--muted); }
.fa-volume-up { color: var(--gold); }

/* ---------- configuracoes ---------- */
#settings-list table { border-spacing: 0 6px; }
#settings-list table tr td { color: var(--text); font-size: 12px; }
#settings-list h3 { font-family: Cinzel, Georgia, serif; color: var(--gold); font-size: 14px; letter-spacing: 1px; }
#settings-list hr { border-bottom: 1px solid var(--line); }
.slider { background: #1d1813; border-color: var(--line); }
input:checked + .slider { background: linear-gradient(90deg, var(--ember-dk), var(--ember)); border-color: var(--ember); }
select { width: 120px; border-color: var(--line-hi); background: rgba(0, 0, 0, .4); }
select option { background: var(--bg1); }

/* ---------- links ---------- */
.s22-h { font-family: Cinzel, Georgia, serif; color: var(--gold); font-size: 13px; letter-spacing: 1px; margin: 2px 0 8px; padding-bottom: 5px; border-bottom: 1px solid var(--line); }
.s22-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.s22-card {
	display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 10px; border-radius: 6px;
	border: 1px solid var(--line); background: rgba(0, 0, 0, .35); color: var(--text); text-decoration: none; font-size: 12px;
	transition: all .15s;
}
.s22-card i { color: var(--gold); font-size: 16px; width: 18px; text-align: center; }
.s22-card:hover { border-color: var(--gold); background: rgba(232, 194, 106, .1); transform: translateY(-1px); }
.s22-card.gold { border-color: var(--ember); background: linear-gradient(135deg, rgba(255, 106, 26, .25), rgba(0, 0, 0, .35)); }
.s22-tip { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin: 0; }

/* ---------- menu inferior ---------- */
#menu {
	position: absolute; left: 10px; right: 10px; bottom: 10px; width: auto; height: 50px; margin: 0;
	display: flex; gap: 6px; border: 0; border-radius: 0; background: none;
}
#menu a.button-menu, #menu a.button-menu:hover, #menu a.button-menu:nth-child(n) {
	position: relative; flex: 1; width: auto; height: 50px; margin: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	border: 1px solid var(--line); border-radius: 8px; background: var(--panel) none;
	color: var(--muted); text-decoration: none; font-size: 10px; letter-spacing: .5px; transition: all .15s;
}
#menu a.button-menu i { font-size: 17px; color: var(--gold); opacity: .75; }
#menu a.button-menu:hover { color: var(--gold-hi); border-color: var(--line-hi); }
#menu a.button-menu.active, #menu a.button-menu.s22-on {
	color: var(--gold-hi); border-color: var(--gold);
	background: linear-gradient(180deg, rgba(232, 194, 106, .2), rgba(0, 0, 0, .5));
	box-shadow: 0 0 12px rgba(232, 194, 106, .2), inset 0 -2px 0 var(--ember);
}
#menu a.button-menu.active i, #menu a.button-menu.s22-on i { opacity: 1; }
#menu a.button-menu::before, #menu a.button-menu::after,
#menu a.button-menu.active::before, #menu a.button-menu.active::after { display: none; content: none; }

/* ---------- scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, .35) none; border-radius: 3px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--gold), var(--ember-dk)) !important; border-radius: 3px; min-height: 40px; }
::-webkit-scrollbar-button, ::-webkit-scrollbar-button:end:increment, ::-webkit-scrollbar-button:start:decrement { display: none; height: 0; background: none; }
