body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    color: #888;
    font-family: Consolas, Monaco, 'Courier New', Courier, monospace;
}

#app {
    padding: 2rem;
}

/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    border-bottom: 1px solid #333;
}


.nav-path-display {
    color: #888;
    font-size: 1rem;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0 0 0 2rem; 
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: #fff; 
    text-decoration: none;
    font-size: 1.5rem;
    cursor: pointer;
}

nav a:hover {
    color: #0f7;
}


.text-loader {
    font-family: monospace; 
    font-size: 1.5rem;      
    color: #0f7;        
    margin: 40px 0;
    display: inline-block;  
    width: 1ch;  /* WHY do we need to set width when we're already monospace??? Firefox & Chrome, get your shit together! */
}


.content-section {
    display: none; 
}

.content-section.active {
    display: block; 
}

.ascii-art {
    font-size: 0.3rem
}

#home {
    margin: 0 auto;
    max-width: 50em;
}

#about {
    margin: 0 auto;
    max-width: 50em;
}

#projects {
    margin: 0 auto;
    max-width: 50em;
}

#contact {
    margin: 0 auto;
    max-width: 50em;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.service-card {
    border: 1px solid #333;
    background-color: #0d0d0d;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    cursor: pointer;
}

.service-card:hover {
    background-color: #1a1a1a;
    border-color: #0f7;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 0.75rem;
}

.service-name {
    font-size: 1rem;
    font-weight: bold;
}

.service-status {
    padding: 3px;
    border-radius: 2px;
    font-size: 1rem;
    text-transform: uppercase;
}

.service-status.operational { background-color: #0f7; color: #000; }
.service-status.degraded { background-color: #f70; color: #000; }
.service-status.outage { background-color: #f30; color: #000; }

.service-latency strong {
    color: #0f7;
}

.service-graph-container {
    padding-top: 3px;
}

.sparkline-graph {
    display: flex;
    align-items: flex-end;
    gap: 1px;
    width: 100%;
    height: 50px;
}

.sparkline-bar {
    flex-grow: 1;
    background-color: #0f7;
    opacity: 0.6;
}

/* Detail View Styles */
/* .service-detail-view {
    animation: fadeIn 0.5s ease-in-out;
} */

.back-button {
    background: none;
    border: 1px solid #333;
    color: #eee;
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin-bottom: 2rem;
}

.back-button:hover {
    background-color: #eee;
    color: #000;
}

.event-log {
    background-color: #0a0a0a;
    border: 1px solid #333;
    padding: 1rem;
    line-height: 1.6;
    font-family: Consolas, Monaco, 'Courier New', Courier, monospace;
    white-space: pre-wrap; 
}

/* Event Log Level Colors */
.log-info { color: #07f; }
.log-warn { color: #f70; }
.log-error{ color: #f10; }
.log-fatal { color: #f0b; font-weight: bold; }


/* --- SVG Line Graph Styles --- */

.line-graph-svg {
    width: 100%;
    height: auto; 
    max-width: 700px;
    display: block; 
    margin: 0 auto; 
}

.line-graph-svg .graph-background {
    fill: #111; 
}

.line-graph-svg .demarcation-line {
    stroke: #333; 
    stroke-width: 1;
    stroke-dasharray: 2, 3; 
}

.line-graph-svg .latency-line {
    stroke: #0f7; 
    stroke-width: 1;
    fill: none; 
    stroke-linejoin: round; 
    stroke-linecap: round;
}

.line-graph-svg .demarcation-text {
    fill: #888;
    font-family: Consolas, Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    text-anchor: end;
    overflow: visible
}

.line-graph-svg .timestamp-text {
    fill: #888;
    font-family: Consolas, Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    text-anchor: middle;
}