/* ==========================================================
   DIGIVERSE — tema oscuro/tech basado en la estructura Kathrine
   v2 — corrige tickers/news, agrega glow y textura
   ========================================================== */

body
{
	background-color: #0A0E14;
	background-image:
		radial-gradient(ellipse 900px 400px at 50% 0%, rgba(0,229,160,0.07), transparent 70%),
		repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 24px),
		repeating-linear-gradient(90deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 24px);
	margin: 0px;
	padding: 0px;
	font-family: 'Segoe UI', Verdana, Arial, Helvetica, sans-serif;
	font-size: 13px;
	color: #B8C4D0;
}

#page
{
	width: 92%;
	max-width: 1500px;
	margin: auto;
}

/* ---------- HEADER / LOGO (texto, sin imagen) ---------- */
#header
{
	width: 100%;
	height: 180px;
	background-color: #0A0E14;
	background-image: linear-gradient(180deg, #131A26 0%, #0A0E14 100%);
	border-bottom: 2px solid #00E5A0;
	box-shadow: 0 0 20px rgba(0,229,160,0.25);
	float: left;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	padding-left: 30px;
}

#header::before
{
	content: "DIGIVERSE";
	font-family: 'Consolas', 'Courier New', monospace;
	font-size: 68px;
	font-weight: bold;
	letter-spacing: 8px;
	color: #00E5A0;
	text-shadow: 0 0 16px rgba(0,229,160,0.65), 0 0 2px rgba(0,229,160,0.9);
}

/* ---------- TABS ---------- */
#tabs
{
	width: 99%;
	height: 32px;
	background: #10151F;
	border-bottom: 1px solid #1C2430;
	padding-left: 200px;
	position: relative;
	display: inline-flex;
	right: 0;
}

	#tabs .tab
	{
		width: 112px;
		height: 20px;
		background: transparent;
		float: left;
		text-align: center;
		color: #7C8A9A;
		font-weight: bold;
		padding-top: 12px;
		cursor: pointer;
		border-right: 1px solid #1C2430;
		transition: color 0.15s;
	}

	#tabs .tab:hover
	{
		color: #00E5A0;
		text-decoration: none;
	}

	#tabs .tab-active
	{
		width: 113px;
		height: 22px;
		background: #151B26;
		float: left;
		text-align: center;
		color: #00E5A0;
		font-weight: bold;
		padding-top: 10px;
		cursor: pointer;
		border-right: 1px solid #1C2430;
		border-top: 2px solid #00E5A0;
		box-shadow: 0 -2px 8px rgba(0,229,160,0.3) inset;
	}

/* ---------- SUBMENU ---------- */
#mainsubmenu
{
	width: 100%;
	box-sizing: border-box;
	height: 42px;
	background: #0D1117;
	border-bottom: 1px solid #1C2430;
	float: left;
	padding-left: 10px;
	padding-right: 10px;
}

	#mainsubmenu a
	{
		display: block;
		float: left;
		padding: 5px;
		color: #B8C4D0;
		font-weight: bold;
		margin-top: 7px;
		text-decoration: none;
		transition: color 0.15s;
	}

	#mainsubmenu a:hover
	{
		color: #00E5A0;
		text-decoration: none;
	}

	#mainsubmenu .separator
	{
		width: 2px;
		height: 32px;
		display: block;
		float: left;
		background: #1C2430;
	}

/* ---------- CONTENT AREA ---------- */
#content
{
	width: 100%;
	background-color: #10151F;
	border-left: 1px solid #1C2430;
	border-right: 1px solid #1C2430;
	box-sizing: border-box;
	float: left;
}

	#margins
	{
		width: auto;
		margin-left: 10px;
		margin-right: 10px;
		margin-top: 12px;
		margin-bottom: 12px;
		text-align: justify;
	}

#content-bot
{
	width: 100%;
	box-sizing: border-box;
	height: 28px;
	background: #0A0E14;
	border-top: 1px solid #1C2430;
	float: left;
}

#copyrights
{
	width: 100%;
	box-sizing: border-box;
	padding: 10px;
	float: left;
	text-align: center;
	color: #5A6472;
	font-size: 9px;
}

#news-submenu,
#account-submenu,
#community-submenu,
#library-submenu,
#shops-submenu
{
	display: none;
}

/* ---------- LINKS ---------- */
a
{
	color: #00E5A0;
	text-decoration: none;
	font-weight: bold;
}

a:hover
{
	color: #4DFFC4;
	text-decoration: underline;
}

.white, .whites
{
	color: #E8EDF2;
}

hr
{
	border: none;
	border-top: 1px solid #1C2430;
}

/* ==========================================================
   GENERIC TABLES (server status, tickers, plain markup tables)
   ========================================================== */

#margins > table,
#margins table table
{
	background-color: transparent;
}

#margins table tr
{
	background-color: #151B26;
}

#margins table tr.white,
#margins table tr[bgcolor="#afab89"]
{
	background-color: #1C2430 !important;
}

#margins table tr.white td,
#margins table tr[bgcolor="#afab89"] td
{
	color: #00E5A0 !important;
	font-weight: bold;
	letter-spacing: 1px;
	padding: 6px 8px;
}

#margins table td
{
	color: #B8C4D0;
	padding: 4px 8px;
}

/* ==========================================================
   TableContainer (bestiary, admin lists, etc.)
   ========================================================== */

.TableContainer {
  border: 1px solid #1C2430;
  box-shadow: 0 0 10px rgba(0,229,160,0.08);
  position: relative;
  width: 100%;
  font-size: 11px;
  background-color: #151B26;
}
.TableContainer .Odd {
  background-color: #151B26;
  color: #B8C4D0;
}
.TableContainer .Even {
  background-color: #10151F;
  color: #B8C4D0;
}

.TableContainer .CaptionContainer {
  position: relative;
  font-size: 10pt;
  background-color: #151B26 !important;
  border-bottom: 2px solid #00E5A0;
  height: 100%;
  width: 100%;
  text-align: left;
}
.TableContainer .CaptionContainer .CaptionInnerContainer {
	position: relative;
  background-color: #151B26;
  width: 100%;
  height: 100%;
  padding-top: 3px;
  padding-bottom: 4px;
}
.TableContainer .CaptionContainer .Text {
	font-family: 'Consolas', 'Courier New', monospace;
  font-size: 10pt;
  font-weight: bold;
  text-align: left;
  color: #00E5A0;
  letter-spacing: 1px;
  padding-left: 10px;
  padding-top: 0px;
  padding-bottom: 0px;
}
.TableContainer .CaptionContainer .CaptionEdgeLeftTop,
.TableContainer .CaptionContainer .CaptionEdgeRightTop,
.TableContainer .CaptionContainer .CaptionEdgeLeftBottom,
.TableContainer .CaptionContainer .CaptionEdgeRightBottom,
.TableContainer .CaptionContainer .CaptionBorderTop,
.TableContainer .CaptionContainer .CaptionBorderBottom,
.TableContainer .CaptionContainer .CaptionVerticalLeft,
.TableContainer .CaptionContainer .CaptionVerticalRight {
  background: transparent;
}

.TableContentContainer {
  border: 1px solid #1C2430;
  position: relative;
  margin-right: 4px;
  height: 100%;
  background-color: #151B26;
  padding: 0px;
}
.TableContent {
  width: 100%;
  border-collapse: collapse;
  color: #B8C4D0;
}
.TableContent td {
  padding-left: 5px;
  padding-top: 2px;
  padding-right: 5px;
  padding-bottom: 2px;
}

.TableContainer .Table1,
.TableContainer .Table2,
.TableContainer .Table3,
.TableContainer .Table4,
.TableContainer .Table5 {
  width: 100%;
  background-color: #151B26;
  border: 1px solid #1C2430;
}
.TableContainer .Table1 .InnerTableContainer {
  padding: 5px;
}
.TableContainer .Table2 td,
.TableContainer .Table2 .InnerTableContainer td {
  border: 1px solid #1C2430;
  color: #B8C4D0;
}
.TableContainer .Table3 .TableContentAndRightShadow td,
.TableContainer .Table4 .TableContentAndRightShadow .TableContent td,
.TableContainer .Table5 .TableContentAndRightShadow .TableContent td {
  border: 1px solid #1C2430;
  color: #B8C4D0;
}

.TableShadowRightTop,
.TableBottomShadow,
.TableBottomLeftShadow,
.TableBottomRightShadow {
  background: transparent !important;
}

.LabelV, .LabelV120, .LabelV150, .LabelV200 {
  font-weight: bold;
  padding-right: 10px;
  white-space: nowrap;
  vertical-align: top;
  color: #7C8A9A;
}
.LabelV120 { width: 120px; }
.LabelV150 { width: 150px; }
.LabelV200 { width: 200px; }

.LabelH {
  font-weight: bold;
  padding-right: 10px;
  white-space: nowrap;
  background-color: #1C2430;
  color: #00E5A0;
}
.LabelH td {
  background-color: #1C2430;
  padding-left: 5px;
  padding-top: 2px;
  padding-right: 5px;
  padding-bottom: 2px;
}

.InnerTableButtonRow {
  width: 100%;
  padding-left: 1px;
  padding-right: 0px;
  padding-bottom: 4px;
  border: 0px;
}
.InnerTableButtonRow td {
  padding-right: 4px;
}

.Content .BoxContent .Odd {
  background-color: #151B26;
  color: #B8C4D0;
  padding: 2px;
}
.Content .BoxContent .Even {
  background-color: #10151F;
  color: #B8C4D0;
  padding: 2px;
}

/* ==========================================================
   NEWS TICKER / NEWS HEADLINE / FEATURED ARTICLE
   (reescrito como flex, ya no depende del sprite viejo)
   ========================================================== */

.Content #NewsTicker .BoxContent {
  padding: 5px;
  min-height: 90px;
  height: auto !important;
  background-color: #151B26;
}
.Content #NewsTicker .NewsTickerText { font-size: 9pt; position: relative; margin-left: 20px; color: #B8C4D0; }
.Content #NewsTicker .NewsTickerDate { font-size: 7pt; position: absolute; top: 0px; float: left; color: #FF9D00; }

.Content #FeaturedArticle .BoxContent,
.Content #News .BoxContent {
  background-color: #151B26;
  padding: 10px;
  min-height: 100px;
  height: auto !important;
  line-height: 1.6;
  color: #B8C4D0;
}

.Content #FeaturedArticle .NewsHeadlineBackground,
.Content #News .NewsHeadlineBackground,
.Content #NewsArchive .NewsHeadlineBackground {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: auto;
  min-height: 32px;
  box-sizing: border-box;
  padding: 6px 12px;
  margin-bottom: 10px;
  background-color: #1C2430 !important;
  background-image: none !important;
  border-left: 1px solid #1C2430;
  border-right: 1px solid #1C2430;
  border-bottom: 2px solid #FF9D00;
}

.Content #FeaturedArticle .NewsHeadlineIcon,
.Content #News .NewsHeadlineIcon,
.Content #NewsArchive .NewsHeadlineIcon {
  position: static !important;
  flex-shrink: 0;
}

.Content #FeaturedArticle .NewsHeadlineDate,
.Content #News .NewsHeadlineDate,
.Content #NewsArchive .NewsHeadlineDate {
  position: static !important;
  width: auto !important;
  font-size: 8pt;
  color: #7C8A9A;
  flex-shrink: 0;
}

.Content #FeaturedArticle .NewsHeadlineText,
.Content #News .NewsHeadlineText,
.Content #NewsArchive .NewsHeadlineText {
  position: static !important;
  top: auto !important;
  left: auto !important;
  flex: 1;
  font-size: 10pt;
  font-weight: bold;
  color: #FF9D00;
}

.Content #News .NewsHeadlineAuthor {
  position: static !important;
  font-size: 9pt;
  font-weight: bold;
  color: #7C8A9A;
  flex-shrink: 0;
}

/* ---------- ERROR / MESSAGE BOXES ---------- */
.FormFieldError {
  font-size: 8pt;
  color: #FF4D4D;
}
.SmallBox .ErrorMessage {
  font-size: 8pt;
  position: relative;
  color: #FF4D4D;
  height: 100%;
  background-color: #1C1013;
  border: 1px solid #FF4D4D;
  padding: 5px;
  padding-left: 43px;
}
.SmallBox .Message {
  font-size: 10pt;
  position: relative;
  height: 100%;
  background-color: #151B26;
  border: 1px solid #00E5A0;
  padding: 10px;
  color: #B8C4D0;
}
.SmallBox .ErrorMessage ul {
  padding-left: 15px;
}

/* ==========================================================
   Inline .myaac-table (declarada en el <head> del HTML,
   la sobreescribimos porque nuestro CSS carga despues)
   ========================================================== */

.myaac-table { border-spacing: 1px; background-color: #10151F; }
.myaac-table > tbody > tr:nth-child(even) { background: #10151F; color: #B8C4D0; }
.myaac-table > tbody > tr:nth-child(odd) { background: #151B26; color: #B8C4D0; }
.myaac-table > tbody > tr > td { padding: 6px 8px; }
.myaac-table > thead > tr > td,
.myaac-table > thead > tr > th,
.myaac-table > tfoot > tr > td {
  padding: 6px 8px;
  background: #1C2430 !important;
  color: #00E5A0 !important;
  font-weight: bold;
}
