:root {
    --bg-dark: #0a0e14;
    --panel-bg: #111821;
    --panel-border: #1d2b3a;
    --header-yellow: #f6c344;
    --text-gold: #e8b829;
    --text-blue: #4a90d9;
    --status-green: #55ff55;
    --status-orange: #ff9900;
    --sq-dark: #2c2c2c;
    --sq-uniform-gold: #e8b829;
    --sq-uniform-blue: #4a90d9;
    --sq-uniform-red: #c0392b;
}

body {
    background-color: var(--bg-dark);
    color: #ffffff;
    font-family: 'Share Tech Mono', monospace;
    margin: 0;
    padding: 0;
    image-rendering: pixelated;
    overflow-x: hidden;
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header */
.main-header {
    background: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 2px solid var(--panel-border);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: #ff5555;
    border-radius: 50%; /* Simplified mascot */
    position: relative;
}

.logo-icon::before, .logo-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    width: 10px;
    height: 10px;
    background: #ff5555;
}
.logo-icon::before { left: 0; transform: rotate(-30deg); }
.logo-icon::after { right: 0; transform: rotate(30deg); }

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.header-tag {
    background: var(--header-yellow);
    color: #000;
    padding: 5px 20px;
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
}

/* Layout */
.main-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: var(--panel-bg);
    border-right: 2px solid var(--panel-border);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 15px;
    font-size: 0.8rem;
    color: var(--text-blue);
    border-bottom: 1px solid var(--panel-border);
}

.agent-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.sidebar-agent-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.status-dot.online { background: var(--status-green); box-shadow: 0 0 5px var(--status-green); }
.status-dot.idle { background: var(--status-orange); }

.sidebar-agent-info {
    flex: 1;
}

.sidebar-agent-name {
    font-size: 0.9rem;
    font-weight: bold;
}

.sidebar-agent-status {
    font-size: 0.6rem;
    color: var(--text-blue);
    text-transform: uppercase;
}

/* Main Content Area */
.content-area {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 10px;
    padding: 10px;
    background: #0a0e14;
    overflow-y: auto;
}

/* Rooms Grid */
.rooms-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
}

.room-box {
    background: var(--panel-bg);
    border: 2px solid var(--panel-border);
    position: relative;
    display: flex;
    flex-direction: column;
}

.room-header {
    background: rgba(29, 43, 58, 0.5);
    padding: 5px 10px;
    font-size: 0.7rem;
    color: var(--text-blue);
    text-transform: uppercase;
    border-bottom: 1px solid var(--panel-border);
}

.room-content {
    flex: 1;
    position: relative;
    background: #151c26; /* Slightly lighter floor */
}

/* Pixel Art Furniture (CSS based) */
.table-pixel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 60px;
    background: #5d4037;
    border: 4px solid #2c1d18;
}

.desk-pixel {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 40px;
    background: #4e342e;
    border: 3px solid #2c1d18;
}

.monitor-pixel {
    position: absolute;
    bottom: 45px;
    left: 30px;
    width: 30px;
    height: 20px;
    background: #000;
    border: 2px solid #666;
}

/* Desks Section (Right side) */
.desks-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.desk-station {
    background: var(--panel-bg);
    border: 2px solid var(--panel-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.station-header {
    width: 100%;
    font-size: 0.6rem;
    color: var(--text-blue);
    text-align: left;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

/* The Square Trek Characters in the layout */
.agent-character {
    transform: scale(0.6);
    margin-bottom: -20px;
}

.char-head {
    width: 50px;
    height: 50px;
    border: 4px solid var(--sq-dark);
}

.char-body {
    width: 40px;
    height: 60px;
    border: 4px solid var(--sq-dark);
    border-top: none;
}

.char-legs {
    width: 32px;
    height: 20px;
    background: var(--sq-dark);
}

/* Mobile responsive */
@media (max-width: 1000px) {
    .main-layout { flex-direction: column; overflow: visible; }
    .sidebar { width: 100%; height: auto; }
    .content-area { grid-template-columns: 1fr; }
    .rooms-section { grid-template-columns: 1fr; }
}
