body {
    margin: 0;
    background: #050505;
    color: #f5f5f5;
    font-family: "IBM Plex Mono", "Source Code Pro", monospace;
}

.content-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    box-sizing: border-box;
}

.stats-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

@media (max-width: 768px) {
    .content-container {
        padding: 0 16px;
    }
}

main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2.5rem 0 3rem;
    gap: 2rem;
}

h1 {
    margin: 0;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-size: 2rem;
}

.stats-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.stats-header-row {
    width: min(1200px, 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}


.lookup-map-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    width: 100%;
}

.lookup-card,
.map-card {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    text-align: left;
    box-sizing: border-box;
}

.uptime-inline {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.uptime-inline .inline-label {
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #9b9b9b;
}

.uptime-value {
    font-size: 1.7rem;
    font-weight: 600;
}

.card {
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.stat-card {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 600;
    background: conic-gradient(#12ff6c var(--progress, 0%), rgba(255, 255, 255, 0.1) 0);
    position: relative;
}

.circle::after {
    content: "";
    position: absolute;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #050505;
}

.circle span {
    position: relative;
    z-index: 1;
}

.circle.static {
    background: linear-gradient(135deg, rgba(0, 255, 170, 0.85), rgba(0, 186, 255, 0.85));
}

.label {
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin: 0;
}

.meta {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: #9b9b9b;
}

.log-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.75rem;
    text-align: left;
    box-sizing: border-box;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
}

.log-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 320px;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.5rem;
    scrollbar-width: none;
}

.log-list::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.log-list li {
    padding: 0;
}

.log-entry {
    margin: 0.2rem 0;
    font-size: 0.85rem;
    font-family: "IBM Plex Mono", monospace;
}

.log-entry.indent {
    padding-left: 1rem;
}

.log-toggle {
    background: none;
    border: none;
    color: #8fe88f;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    text-align: left;
    font-size: 0.85rem;
}

.log-entry {
    margin: 0.2rem 0;
}

.log-toggle {
    background: none;
    border: none;
    color: #8fe88f;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    text-align: left;
    font-size: 0.85rem;
}

#map {
    width: 100%;
    height: 320px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.location-list-wrapper {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    background: rgba(10, 10, 10, 0.6);
    display: flex;
    flex-direction: column;
    order: 0;
}

.location-heading {
    margin: 0 0 0.35rem;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #9acd32;
}

.location-list {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-y: auto;
    flex: 1;
    max-height: 320px;
    scrollbar-width: thin;
    scrollbar-color: #8fe88f transparent;
}

.location-list::-webkit-scrollbar {
    width: 6px;
}

.location-list::-webkit-scrollbar-track {
    background: transparent;
}

.location-list::-webkit-scrollbar-thumb {
    background-color: #8fe88f;
    border-radius: 3px;
}

@media (min-width: 1200px) {
    .content-container {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto auto;
        gap: 2rem;
        width: calc(100% - 64px);
    }

    .stats-section {
        grid-column: 1;
        grid-row: 1;
    }

    .log-card {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: start;
        min-height: 0;
    }

    .lookup-map-row {
        grid-column: 1;
        grid-row: 2;
    }
}

@media (max-width: 768px) {
    .lookup-map-row {
        grid-template-columns: 1fr;
    }

    .location-list-wrapper {
        margin-bottom: 1rem;
    }
}

.location-list li {
    font-size: 0.85rem;
    line-height: 1.4;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.4rem 0;
}

.location-list li:last-child {
    border-bottom: none;
}

footer {
    width: min(560px, 100%);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.7rem;
    color: #7a7a7a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.75rem;
    text-align: center;
}
