@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

:root {
    --phosphor-main: #ffaa00;
    --phosphor-dim: #996600;
    --bg-color: #000000;
    --scanline-color: rgba(0, 0, 0, 0.5);
}

body {
    background-color: var(--bg-color);
    color: var(--phosphor-main);
    font-family: 'Share Tech Mono', 'Lucida Console', 'Monaco', 'Menlo', monospace;
    margin: 0;
    padding: 2rem;
    overflow: hidden;
    height: 100vh;
    font-size: 1.1rem;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 0 3px var(--phosphor-dim);
    box-sizing: border-box;
    font-weight: normal;
}

/* Layout Grid */
.container {
    max-width: 50%;
    margin: 0 auto;
    display: grid;
    grid-template-rows: auto auto auto auto;
    border: 2px double var(--phosphor-dim);
    padding: 1rem;
    position: relative;
    z-index: 10;
}

/* Links / Menu Items */
a {
    color: var(--phosphor-main);
    text-decoration: none;
    display: block;
    padding: 2px 0;
}

a:hover, a:focus {
    background-color: var(--phosphor-main);
    color: var(--bg-color);
    cursor: pointer;
    font-weight: bold;
}

/* Sections */
.header {
    margin-bottom: 0.5rem;
    white-space: pre;
    text-align: center;
    overflow-x: hidden;
    scrollbar-width: none;
    line-height: 1;
}

.header::-webkit-scrollbar {
    display: none;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    border-top: 1px dashed var(--phosphor-dim);
    border-bottom: 1px dashed var(--phosphor-dim);
    padding: 1rem 0;
    overflow-y: auto;
}

.job-status-row {
    padding: 1rem 0;
    border-bottom: 1px dashed var(--phosphor-dim);
}

.job-status-row h3 {
    border-bottom: 1px solid var(--phosphor-main);
    margin-top: 0;
    display: inline-block;
    font-weight: bold;
}

.category-box h3 {
    border-bottom: 1px solid var(--phosphor-main);
    margin-top: 0;
    display: inline-block;
    font-weight: bold;
}

.category-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
}

/* CRT Effects */
.scanlines {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    background: linear-gradient(
        to bottom,
        var(--scanline-color) 50%,
        transparent 50%
    );
    background-size: 100% 4px;
    opacity: 0.15;
}

.glow-overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 51;
    background: rgba(0, 0, 0, 0.15);
}

/* Utilities */
.blink {
    animation: blinker 1s step-end infinite;
}

@keyframes blinker {
    50% { opacity: 0; }
}

.stat-row {
    display: flex;
    justify-content: space-between;
}

.status-section {
    margin-top: 1rem;
    border-top: 1px dashed var(--phosphor-dim);
    padding-top: 1rem;
}

.status-item {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-label {
    color: var(--phosphor-main);
}

.status-value {
    font-weight: 500;
}

.status-success {
    color: #0f0;
}

.status-error {
    color: #f00;
}

.status-warning {
    color: #ff0;
}

.status-pending {
    color: var(--phosphor-main);
}

/* ASCII Box Drawing helpers */
.box-draw {
    color: var(--phosphor-dim);
}

/* Tablet tweaks */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile tweaks */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .header { font-size: 0.8rem; }
}