:root {
    --bg-black: #000000;
    --border-color: #2d3545;
    --text-primary: #ffffff;
    --text-muted: #8c92a3;
    --accent-blue: #3b82f6;
    --danger-red: #ef4444;
    --success-green: #22c55e;
    --nord-0: #2e3440;
    --nord-1: #3b4252;
    --nord-2: #434c5e;
    --nord-3: #4c566a;
    --nord-4: #d8dee9;
    --nord-5: #e5e9f0;
    --nord-6: #eceff4;
    --nord-7: #8fbcbb;
    --nord-8: #88c0d0;
    --nord-9: #81a1c1;
    --nord-10: #5e81ac;
}

body {
    background-color: var(--bg-black);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    margin: 0;
    padding: 0;
}

.text-muted { color: var(--text-muted); }
.text-accent { color: var(--nord-8); }
.text-success { color: var(--success-green); }
.text-danger { color: var(--danger-red); }

/* Global Layout */
#main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Resources Bar */
#top-bar {
    background: var(--nord-0);
    border-bottom: 2px solid var(--nord-1);
    padding: 10px;
    z-index: 100;
}

.resource-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.resource-box {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--nord-3);
    padding: 8px 15px;
    min-width: 140px;
}

/* Grid System */
.galaxy-map {
    display: grid;
    gap: 2px;
    background: var(--nord-1);
    border: 2px solid var(--nord-3);
}

.slot {
    background: #0a0a0a;
    transition: all 0.2s;
}

.slot:hover {
    background: #1a1a1a;
    box-shadow: inset 0 0 10px rgba(136, 192, 208, 0.2);
}

/* Forms */
input[type="number"], input[type="text"] {
    background: #000;
    border: 1px solid var(--nord-3);
    color: #fff;
    padding: 5px;
}

button {
    background: var(--nord-3);
    color: #fff;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

button:hover {
    background: var(--nord-10);
}

/* Admin Console Fixes */
.stat-card {
    background: var(--nord-0);
    border: 1px solid var(--nord-3);
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: var(--nord-1);
    color: var(--nord-8);
    text-align: left;
    padding: 12px;
    font-size: 11px;
}

td {
    padding: 10px;
    border-bottom: 1px solid var(--nord-1);
}