/* Imperial Theme: Dark Mode with Crimson Accents */
:root {
    --bg-primary: #000000;      /* Deep black void, like your screenshot's background */
    --bg-secondary: #1a1a1a;    /* Slightly lighter black for panels */
    --accent-red: #8B0000;      /* Imperial red for buttons/borders */
    --text-white: #FFFFFF;      /* Stark white text for contrast */
    --text-gold: #D4AF37;       /* Subtle gold for emblem */
    --border-red: 2px solid var(--accent-red);  /* Red borders for buttons */
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;  /* Clean, military font */
    background-color: var(--bg-primary);
    color: var(--text-white);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header: Imperial Title with Emblem */
.header {
    text-align: center;
    padding: 20px;
    background-color: var(--bg-secondary);
    border-bottom: var(--border-red);
}

.header h1 {
    color: var(--accent-red);
    margin: 0;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(139, 0, 0, 0.5);  /* Glowing red shadow */
}

.emblem {
    width: 80px;
    height: 80px;
    background-image: url('imperial-cog.png');  /* Replace with your image */
    background-size: cover;
    margin: 0 auto 10px;
    filter: hue-rotate(0deg) brightness(1.2);  /* Enhance gold tones */
}

/* Buttons: Red, Bold, Imperial */
.btn {
    background-color: var(--accent-red);
    color: var(--text-white);
    border: var(--border-red);
    padding: 12px 24px;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 0;  /* Sharp edges, no softness */
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #A52A2A;  /* Darker red on hover */
}

/* Sidebar: Fixed left panel for navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background-color: var(--bg-secondary);
    border-right: var(--border-red);
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin: 10px 0;
}

.sidebar a {
    display: block;
    color: var(--text-white);
    text-decoration: none;
    padding: 15px 20px;
    border-left: 4px solid transparent;
    transition: border-left-color 0.3s;
}

.sidebar a:hover, .sidebar a.active {
    border-left-color: var(--accent-red);
    background-color: var(--bg-primary);
}

/* Main Content: Pushes right of sidebar */
.main-content {
    margin-left: 250px;
    padding: 20px;
}

/* Tabs: Simple JS-switched sections */
.tab-content {
    display: none;
    background-color: var(--bg-secondary);
    padding: 20px;
    border: 1px solid var(--accent-red);
    margin-top: 20px;
}

.tab-content.active {
    display: block;
}

/* Forms: Clean inputs with red focus */
input, select, textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background-color: var(--bg-primary);
    border: 1px solid var(--accent-red);
    color: var(--text-white);
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: #A52A2A;
}

/* Tables: For history/balance */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    padding: 10px;
    border: 1px solid var(--accent-red);
    text-align: left;
}

th {
    background-color: var(--accent-red);
}

/* Footer: Links to YouTube/Contact */
.footer {
    text-align: center;
    padding: 20px;
    background-color: var(--bg-secondary);
    border-top: var(--border-red);
}

@media (max-width: 768px) {
    .sidebar { width: 100%; position: relative; }  /* Stack on mobile */
    .main-content { margin-left: 0; }
}