/* lowest.dev — Generative Monitoring Station */
/* Colors: #F5F0E8, #D4C9B0, #3D3A33, #7A9B8A, #B87856, #8B8578, #C4A55A, #5A5548 */
/* Fonts: Space Grotesk, IBM Plex Mono */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'IBM Plex Mono', monospace;
    background-color: #3D3A33;
    color: #D4C9B0;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background-color: #3D3A33;
    border-bottom: 1px solid #5A5548;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.site-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #D4C9B0;
}

.subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(0.6rem, 0.9vw, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8B8578;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #7A9B8A;
    animation: pulse-indicator 3s ease-in-out infinite;
}

@keyframes pulse-indicator {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.status-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(0.6rem, 0.8vw, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #7A9B8A;
}

.timestamp {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: #8B8578;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    padding: 16px;
    flex: 1;
    overflow: hidden;
}

/* Panel */
.panel {
    background-color: rgba(90, 85, 72, 0.25);
    border: 1px solid #5A5548;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8B8578, transparent);
    opacity: 0.3;
}

.panel-wide {
    grid-column: span 2;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(90, 85, 72, 0.5);
    flex-shrink: 0;
}

.panel-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(0.65rem, 0.9vw, 0.8rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8B8578;
}

.panel-status {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7A9B8A;
    padding: 2px 6px;
    border: 1px solid rgba(122, 155, 138, 0.3);
    border-radius: 1px;
}

.panel-canvas {
    flex: 1;
    width: 100%;
    display: block;
    background-color: rgba(61, 58, 51, 0.8);
}

.panel-footer {
    display: flex;
    justify-content: space-between;
    padding: 6px 12px;
    border-top: 1px solid rgba(90, 85, 72, 0.5);
    flex-shrink: 0;
}

.panel-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    color: #8B8578;
    letter-spacing: 0.04em;
}

/* Readouts Panel */
.readouts-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 12px;
    gap: 8px;
}

.readout-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.readout-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8B8578;
    width: 80px;
    flex-shrink: 0;
}

.readout-bar {
    flex: 1;
    height: 4px;
    background-color: rgba(90, 85, 72, 0.4);
    border-radius: 1px;
    overflow: hidden;
}

.readout-fill {
    height: 100%;
    border-radius: 1px;
    background-color: #B87856;
    transition: width 2s ease;
    width: 0%;
}

.readout-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: #C4A55A;
    width: 40px;
    text-align: right;
    flex-shrink: 0;
}

/* Footer */
.site-footer {
    display: flex;
    justify-content: space-between;
    padding: 8px 20px;
    border-top: 1px solid #5A5548;
    flex-shrink: 0;
}

.footer-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    color: #8B8578;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
    .panel-wide {
        grid-column: span 1;
    }

    .header-left {
        flex-direction: column;
        gap: 2px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
        overflow-y: auto;
    }

    .panel-canvas {
        min-height: 180px;
    }
}
