1054 lines
20 KiB
CSS
1054 lines
20 KiB
CSS
/* VillSim - Dark Medieval Fantasy Theme */
|
|
|
|
:root {
|
|
/* Color palette - earthy medieval tones with golden accents */
|
|
--bg-deep: #0d0f14;
|
|
--bg-primary: #151921;
|
|
--bg-secondary: #1c2230;
|
|
--bg-elevated: #242b3d;
|
|
--bg-hover: #2d3548;
|
|
|
|
--border-color: #3a4359;
|
|
--border-light: #4a5673;
|
|
|
|
--text-primary: #e8e4dc;
|
|
--text-secondary: #a8a095;
|
|
--text-muted: #6b6560;
|
|
|
|
--accent-gold: #d4a84b;
|
|
--accent-gold-dim: #9c7a35;
|
|
--accent-copper: #c87f5a;
|
|
--accent-emerald: #4a9c6d;
|
|
--accent-ruby: #c45c5c;
|
|
--accent-sapphire: #5a8cc8;
|
|
|
|
/* Profession colors */
|
|
--prof-hunter: #c45c5c;
|
|
--prof-gatherer: #6bab5e;
|
|
--prof-woodcutter: #a67c52;
|
|
--prof-trader: #d4a84b;
|
|
--prof-crafter: #8b6fc0;
|
|
--prof-villager: #7a8899;
|
|
|
|
/* Resource colors */
|
|
--res-meat: #c45c5c;
|
|
--res-berries: #a855a8;
|
|
--res-water: #5a8cc8;
|
|
--res-wood: #a67c52;
|
|
--res-hide: #8b7355;
|
|
--res-clothes: #6b6560;
|
|
|
|
/* Stat colors */
|
|
--stat-energy: #d4a84b;
|
|
--stat-hunger: #c87f5a;
|
|
--stat-thirst: #5a8cc8;
|
|
--stat-heat: #c45c5c;
|
|
|
|
/* Spacing */
|
|
--space-xs: 4px;
|
|
--space-sm: 8px;
|
|
--space-md: 16px;
|
|
--space-lg: 24px;
|
|
--space-xl: 32px;
|
|
|
|
/* Typography */
|
|
--font-display: 'Crimson Pro', Georgia, serif;
|
|
--font-mono: 'JetBrains Mono', monospace;
|
|
|
|
/* Borders & Shadows */
|
|
--radius-sm: 4px;
|
|
--radius-md: 8px;
|
|
--radius-lg: 12px;
|
|
--shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
|
|
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
|
|
--shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html, body {
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-display);
|
|
background: var(--bg-deep);
|
|
color: var(--text-primary);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
#app {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
background:
|
|
radial-gradient(ellipse at 20% 20%, rgba(212, 168, 75, 0.03) 0%, transparent 50%),
|
|
radial-gradient(ellipse at 80% 80%, rgba(200, 127, 90, 0.02) 0%, transparent 50%),
|
|
var(--bg-deep);
|
|
}
|
|
|
|
/* Header */
|
|
#header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: var(--space-sm) var(--space-lg);
|
|
background: var(--bg-primary);
|
|
border-bottom: 1px solid var(--border-color);
|
|
height: 56px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.header-left {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.title {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
color: var(--accent-gold);
|
|
letter-spacing: 0.5px;
|
|
text-shadow: 0 0 20px rgba(212, 168, 75, 0.3);
|
|
}
|
|
|
|
.subtitle {
|
|
font-size: 0.85rem;
|
|
color: var(--text-muted);
|
|
font-weight: 400;
|
|
}
|
|
|
|
.header-center {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.time-display {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
font-family: var(--font-mono);
|
|
font-size: 0.9rem;
|
|
color: var(--text-secondary);
|
|
background: var(--bg-secondary);
|
|
padding: var(--space-xs) var(--space-md);
|
|
border-radius: var(--radius-md);
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.separator {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.header-right {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.connection-status {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.status-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
transition: background 0.3s;
|
|
}
|
|
|
|
.status-dot.connected {
|
|
background: var(--accent-emerald);
|
|
box-shadow: 0 0 8px var(--accent-emerald);
|
|
}
|
|
|
|
.status-dot.disconnected {
|
|
background: var(--accent-ruby);
|
|
box-shadow: 0 0 8px var(--accent-ruby);
|
|
}
|
|
|
|
/* Main Content */
|
|
#main-content {
|
|
display: flex;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Panels */
|
|
.panel {
|
|
width: 280px;
|
|
background: var(--bg-primary);
|
|
border: 1px solid var(--border-color);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
#left-panel {
|
|
border-left: none;
|
|
border-top: none;
|
|
border-bottom: none;
|
|
}
|
|
|
|
#right-panel {
|
|
border-right: none;
|
|
border-top: none;
|
|
border-bottom: none;
|
|
}
|
|
|
|
.panel-section {
|
|
padding: var(--space-md);
|
|
border-bottom: 1px solid var(--border-color);
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.panel-section:last-child {
|
|
border-bottom: none;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
color: var(--text-muted);
|
|
margin-bottom: var(--space-sm);
|
|
}
|
|
|
|
/* Stats Grid */
|
|
.stat-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.stat-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: var(--space-sm);
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.stat-value {
|
|
font-family: var(--font-mono);
|
|
font-size: 1.5rem;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 0.7rem;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
/* Profession List */
|
|
.profession-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.profession-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: var(--space-xs) var(--space-sm);
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--radius-sm);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.profession-name {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.profession-icon {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.profession-count {
|
|
font-family: var(--font-mono);
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Economy Stats */
|
|
.economy-stats {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.economy-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: var(--space-sm);
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.economy-label {
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.economy-value {
|
|
font-family: var(--font-mono);
|
|
font-weight: 500;
|
|
color: var(--accent-gold);
|
|
}
|
|
|
|
/* Agent Details */
|
|
.agent-details {
|
|
min-height: 150px;
|
|
}
|
|
|
|
.agent-details .no-selection {
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
font-size: 0.85rem;
|
|
text-align: center;
|
|
padding: var(--space-lg);
|
|
}
|
|
|
|
.agent-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.agent-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
padding-bottom: var(--space-sm);
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.agent-avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: var(--radius-sm);
|
|
background: var(--bg-elevated);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.agent-info h4 {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.agent-info .profession {
|
|
font-size: 0.75rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.agent-stats {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.agent-stat-bar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.agent-stat-bar .stat-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 0.7rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.stat-bar {
|
|
height: 6px;
|
|
background: var(--bg-deep);
|
|
border-radius: 3px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.stat-bar-fill {
|
|
height: 100%;
|
|
border-radius: 3px;
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
.stat-bar-fill.energy { background: var(--stat-energy); }
|
|
.stat-bar-fill.hunger { background: var(--stat-hunger); }
|
|
.stat-bar-fill.thirst { background: var(--stat-thirst); }
|
|
.stat-bar-fill.heat { background: var(--stat-heat); }
|
|
|
|
.agent-inventory {
|
|
padding-top: var(--space-sm);
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
.agent-inventory h5 {
|
|
font-size: 0.7rem;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
margin-bottom: var(--space-xs);
|
|
}
|
|
|
|
.inventory-grid {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.inventory-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 2px 6px;
|
|
background: var(--bg-elevated);
|
|
border-radius: var(--radius-sm);
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.agent-action {
|
|
padding-top: var(--space-sm);
|
|
border-top: 1px solid var(--border-color);
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.agent-action .action-label {
|
|
font-size: 0.7rem;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
/* Market Prices */
|
|
.market-prices {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.market-price-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: var(--space-xs) var(--space-sm);
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--radius-sm);
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.market-resource {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.market-price {
|
|
font-family: var(--font-mono);
|
|
color: var(--accent-gold);
|
|
}
|
|
|
|
.market-available {
|
|
font-size: 0.7rem;
|
|
color: var(--text-muted);
|
|
margin-left: var(--space-xs);
|
|
}
|
|
|
|
/* Activity Log */
|
|
.activity-log {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xs);
|
|
min-height: 150px;
|
|
max-height: 250px;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.log-entry {
|
|
padding: var(--space-xs) var(--space-sm);
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--radius-sm);
|
|
border-left: 2px solid var(--border-color);
|
|
}
|
|
|
|
.log-entry.action-hunt { border-left-color: var(--prof-hunter); }
|
|
.log-entry.action-gather { border-left-color: var(--prof-gatherer); }
|
|
.log-entry.action-chop_wood { border-left-color: var(--prof-woodcutter); }
|
|
.log-entry.action-trade { border-left-color: var(--prof-trader); }
|
|
.log-entry.action-death { border-left-color: var(--accent-ruby); background: rgba(196, 92, 92, 0.1); }
|
|
|
|
.log-agent {
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.log-action {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Game Container */
|
|
#game-container {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--bg-secondary);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#game-container canvas {
|
|
border-radius: var(--radius-sm);
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
/* Footer Controls */
|
|
#footer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: var(--space-sm) var(--space-lg);
|
|
background: var(--bg-primary);
|
|
border-top: 1px solid var(--border-color);
|
|
height: 56px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.controls {
|
|
display: flex;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
padding: var(--space-xs) var(--space-md);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-sm);
|
|
font-family: var(--font-display);
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.btn-icon {
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent-gold);
|
|
border-color: var(--accent-gold);
|
|
color: var(--bg-deep);
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: var(--accent-gold-dim);
|
|
border-color: var(--accent-gold-dim);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--bg-secondary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: var(--bg-elevated);
|
|
}
|
|
|
|
.btn-toggle {
|
|
background: var(--bg-secondary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.btn-toggle.active {
|
|
background: var(--accent-emerald);
|
|
border-color: var(--accent-emerald);
|
|
color: var(--bg-deep);
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.speed-control {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.speed-control label {
|
|
font-weight: 500;
|
|
}
|
|
|
|
#speed-slider {
|
|
width: 120px;
|
|
height: 4px;
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
background: var(--bg-elevated);
|
|
border-radius: 2px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#speed-slider::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
width: 14px;
|
|
height: 14px;
|
|
border-radius: 50%;
|
|
background: var(--accent-gold);
|
|
cursor: pointer;
|
|
}
|
|
|
|
#speed-display {
|
|
font-family: var(--font-mono);
|
|
min-width: 50px;
|
|
}
|
|
|
|
/* Scrollbar styling */
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--border-color);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--border-light);
|
|
}
|
|
|
|
/* Animations */
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.5; }
|
|
}
|
|
|
|
.loading {
|
|
animation: pulse 1.5s ease-in-out infinite;
|
|
}
|
|
|
|
/* Enhanced Agent Details */
|
|
.agent-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.scrollable-section {
|
|
overflow-y: auto;
|
|
max-height: calc(100vh - 400px);
|
|
}
|
|
|
|
.agent-details {
|
|
min-height: auto;
|
|
overflow: visible;
|
|
}
|
|
|
|
.agent-money {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
padding: var(--space-sm);
|
|
background: linear-gradient(135deg, rgba(212, 168, 75, 0.15), rgba(212, 168, 75, 0.05));
|
|
border: 1px solid var(--accent-gold-dim);
|
|
border-radius: var(--radius-sm);
|
|
margin-top: var(--space-sm);
|
|
}
|
|
|
|
.agent-money .money-icon {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.agent-money .money-value {
|
|
font-family: var(--font-mono);
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
color: var(--accent-gold);
|
|
}
|
|
|
|
.agent-money .money-label {
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
margin-left: auto;
|
|
}
|
|
|
|
.subsection-title {
|
|
font-size: 0.7rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
color: var(--text-muted);
|
|
margin: var(--space-sm) 0 var(--space-xs);
|
|
padding-top: var(--space-sm);
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
/* Agent Personal Log */
|
|
.agent-log {
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
max-height: 180px;
|
|
font-size: 0.7rem;
|
|
margin-top: var(--space-xs);
|
|
}
|
|
|
|
.agent-log-entry {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: var(--space-xs);
|
|
padding: 3px 6px;
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--radius-sm);
|
|
border-left: 2px solid var(--border-color);
|
|
}
|
|
|
|
.agent-log-entry.success {
|
|
border-left-color: var(--accent-emerald);
|
|
}
|
|
|
|
.agent-log-entry.failure {
|
|
border-left-color: var(--accent-ruby);
|
|
background: rgba(196, 92, 92, 0.08);
|
|
}
|
|
|
|
.agent-log-turn {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.65rem;
|
|
color: var(--text-muted);
|
|
min-width: 24px;
|
|
}
|
|
|
|
.agent-log-action {
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.agent-log-result {
|
|
color: var(--text-muted);
|
|
flex: 1;
|
|
word-break: break-word;
|
|
}
|
|
|
|
/* Skills Display */
|
|
.agent-skills {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-xs);
|
|
margin-top: var(--space-xs);
|
|
}
|
|
|
|
.skill-badge {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 3px;
|
|
padding: 2px 6px;
|
|
background: var(--bg-elevated);
|
|
border-radius: var(--radius-sm);
|
|
font-size: 0.7rem;
|
|
}
|
|
|
|
.skill-badge .skill-name {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.skill-badge .skill-value {
|
|
font-family: var(--font-mono);
|
|
color: var(--accent-sapphire);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Stats Screen (Full View) */
|
|
.stats-screen {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 1000;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--bg-deep);
|
|
}
|
|
|
|
.stats-screen.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.stats-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: var(--space-sm) var(--space-lg);
|
|
background: var(--bg-primary);
|
|
border-bottom: 1px solid var(--border-color);
|
|
height: 56px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.stats-header-left {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.stats-header-left h2 {
|
|
font-size: 1.3rem;
|
|
font-weight: 700;
|
|
color: var(--accent-gold);
|
|
}
|
|
|
|
.stats-subtitle {
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.stats-header-center {
|
|
flex: 1;
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.stats-header-right {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
/* Stats Tabs */
|
|
.stats-tabs {
|
|
display: flex;
|
|
gap: var(--space-xs);
|
|
background: var(--bg-secondary);
|
|
padding: var(--space-xs);
|
|
border-radius: var(--radius-md);
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.tab-btn {
|
|
padding: var(--space-xs) var(--space-md);
|
|
background: transparent;
|
|
border: none;
|
|
border-radius: var(--radius-sm);
|
|
font-family: var(--font-display);
|
|
font-size: 0.85rem;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.tab-btn:hover {
|
|
color: var(--text-primary);
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.tab-btn.active {
|
|
color: var(--bg-deep);
|
|
background: var(--accent-gold);
|
|
}
|
|
|
|
.stats-body {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: var(--space-lg);
|
|
}
|
|
|
|
.tab-panel {
|
|
display: none;
|
|
height: 100%;
|
|
}
|
|
|
|
.tab-panel.active {
|
|
display: block;
|
|
}
|
|
|
|
/* Chart Containers */
|
|
.chart-wrapper {
|
|
background: var(--bg-primary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
padding: var(--space-md);
|
|
height: calc(100vh - 200px);
|
|
min-height: 400px;
|
|
}
|
|
|
|
.chart-grid {
|
|
display: grid;
|
|
gap: var(--space-md);
|
|
height: calc(100vh - 200px);
|
|
}
|
|
|
|
.chart-grid.two-col {
|
|
grid-template-columns: 1fr 1fr;
|
|
}
|
|
|
|
.chart-grid.three-col {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
}
|
|
|
|
.chart-grid.four-col {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
grid-template-rows: repeat(2, 1fr);
|
|
}
|
|
|
|
.chart-grid .chart-wrapper {
|
|
height: 100%;
|
|
min-height: 280px;
|
|
}
|
|
|
|
/* Stats Footer */
|
|
.stats-footer {
|
|
padding: var(--space-sm) var(--space-lg);
|
|
background: var(--bg-primary);
|
|
border-top: 1px solid var(--border-color);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.stats-summary-bar {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: var(--space-xl);
|
|
}
|
|
|
|
.summary-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 2px;
|
|
}
|
|
|
|
.summary-label {
|
|
font-size: 0.7rem;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.summary-value {
|
|
font-family: var(--font-mono);
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.summary-value.highlight {
|
|
color: var(--accent-emerald);
|
|
}
|
|
|
|
.summary-value.danger {
|
|
color: var(--accent-ruby);
|
|
}
|
|
|
|
.summary-value.gold {
|
|
color: var(--accent-gold);
|
|
}
|
|
|
|
/* Hidden utility */
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Responsive adjustments */
|
|
@media (max-width: 1200px) {
|
|
.panel {
|
|
width: 240px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
#main-content {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.panel {
|
|
width: 100%;
|
|
max-height: 200px;
|
|
}
|
|
|
|
#left-panel, #right-panel {
|
|
flex-direction: row;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.panel-section {
|
|
min-width: 200px;
|
|
border-bottom: none;
|
|
border-right: 1px solid var(--border-color);
|
|
}
|
|
|
|
.stats-header {
|
|
flex-wrap: wrap;
|
|
height: auto;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.stats-header-center {
|
|
order: 3;
|
|
width: 100%;
|
|
}
|
|
|
|
.stats-tabs {
|
|
width: 100%;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.chart-grid.two-col,
|
|
.chart-grid.three-col,
|
|
.chart-grid.four-col {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.chart-wrapper {
|
|
height: 350px;
|
|
min-height: 300px;
|
|
}
|
|
|
|
.stats-summary-bar {
|
|
flex-wrap: wrap;
|
|
gap: var(--space-md);
|
|
}
|
|
}
|
|
|