/* Star System Generator Custom Stylesheet - Sci-Fi / Dark Theme */

/* ================================== */
/* BASIC & RESET                      */
/* ================================== */
body {
	background-color: #0A0A15; /* Deep space dark blue/black */
	font-family: 'Space Mono', monospace, sans-serif; 
	font-size: small;
	color: #E0E0E0; /* Light gray text */
	margin: 0;
	padding: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

h1 {
	color: #4682B4; /* Primary sci-fi blue */
	text-shadow: 0 0 5px rgba(70, 130, 180, 0.7);
}

h2 {
	color: #FFDE59; /* Gold/Yellow accent */
	text-align: left; 
	border-bottom: 1px solid rgba(255, 222, 89, 0.2);
	padding-bottom: 5px;
	margin-bottom: 15px;
}

h3 {
	color: #B0B0B0; /* Muted header */
	margin-top: 5px;
	margin-bottom: 5px;
}

p {
	margin: 2px 0;
}

/* ================================== */
/* LAYOUT & CONTAINERS                */
/* ================================== */
.container {
	display: flex;
	max-width: 1400px; /* Slightly wider */
	margin: 20px auto;
	padding: 0 20px;
	flex-grow: 1;
	align-items: flex-start;
}

.sidebar {
	flex: 0 0 250px;
	margin-right: 30px;
	position: sticky;
	top: 20px;
	background-color: rgba(30, 30, 40, 0.7); /* Dark semi-transparent panel */
	padding: 15px;
	border: 1px solid #4682B4; /* Sci-fi border */
	box-shadow: 0 0 10px rgba(70, 130, 180, 0.3);
}

.main-content {
	flex-grow: 1;
	min-width: 700px;
}

header {
	background-color: #151525;
	padding: 15px 0;
	text-align: center;
	border-bottom: 2px solid #FFDE59;
}

/* ================================== */
/* DATA DISPLAY CARDS                 */
/* ================================== */
.generator-container {
	display: flex;
	flex-wrap: wrap;
	background-color: #1A1A2A; /* Darker background for data container */
	padding: 15px;
	border: 1px solid rgba(70, 130, 180, 0.3);
	border-radius: 5px;
	margin-bottom: 15px;
	gap: 15px;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
	transition: all 0.2s ease;
}

.star-info, .hz-info, .snow-line-info {
	flex: 1;
	min-width: 150px;
}

/* Planet Roster Cards */
.warband-list-container .generator-container:not([style*="dashed"]) {
	/* Styles for planets (not belts) */
	background-color: #151520; 
	/* NOTE: border-left has been removed here to allow the PHP inline style
	         (which uses {$body['status_color']}) to set the color dynamically. */
}

/* Planet HZ Status Colors */
.warband-list-container .generator-container strong[style*="#32CD32"] { /* HZ Green */
	color: #4DFF9C !important;
}
.warband-list-container .generator-container strong[style*="#FF4500"] { /* Hot Red */
	color: #FF7070 !important;
}
.warband-list-container .generator-container strong[style*="#4682B4"] { /* Cold Blue */
	color: #70D5FF !important;
}

/* Asteroid Belt Styling */
.warband-list-container .generator-container[style*="dashed"] {
	background-color: #202035;
	border: 1px dashed #C4A15A !important;
	color: #C4A15A;
}

/* Outer Boundary Styling (Kuiper/Oort) */
.warband-list-container .generator-container[style*="dashed"][style*="#4682B4"] {
	background-color: #151525;
	border: 1px dashed #4682B4 !important;
	color: #4682B4;
}


/* Specific data color overrides */
.generator-container span[style*="#FFDE59"] {
	color: #FFDE59; /* Ensures key numbers stay gold */
	font-weight: bold;
}

.generator-container h3 {
	border-bottom: 1px solid rgba(176, 176, 176, 0.1);
	padding-bottom: 2px;
}

/* Moons Sub-Section */
.generator-container div[style*="background-color: #282828"] {
	background-color: #202030 !important;
	border: none !important;
	box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

/* ================================== */
/* SIDEBAR LINKS                      */
/* ================================== */
.sidebar ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sidebar li {
	margin-bottom: 10px;
}

.sidebar a {
	color: #70D5FF;
	text-decoration: none;
	transition: color 0.2s;
	display: block;
	padding: 5px 0;
	border-bottom: 1px dotted rgba(70, 130, 180, 0.3);
}

.sidebar a:hover {
	color: #FFDE59;
	text-shadow: 0 0 5px rgba(255, 222, 89, 0.5);
}