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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.4;
    color: #3d372b;
    background: linear-gradient(135deg, #f6eee3 0%, #f6efe3 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 800px;
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #f6efe3 0%, #f6eee3 100%);
    color: #3d372b;
    padding: 40px 30px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

.logo {
  height: 7em;
  display: block;
  float: left;
}

main {
    padding: 0.6em;
}

.info-card {
    background: #fbf6f7;
    border-radius: 8px;
    padding: 0.6em;
    margin-bottom: 20px;
}

.info-card h2 {
    color: #9d7d5c;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.info-card p {
    margin-bottom: 10px;
    color: #555;
}

.endpoint {
    display: block;
    background: #2d3748;
    color: #68d391;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    margin: 15px 0;
    overflow: clip;
}

.docs-link {
    margin-top: 15px;
}

.docs-link a {
    color: #698a96;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.docs-link a:hover {
    color: #764ba2;
}

.status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.status-indicator {
    width: 12px;
    height: 12px;
    background: #48bb78;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.status-text {
    color: #48bb78;
    font-weight: 600;
    font-size: 1.1em;
}

footer {
    background: #fbf6f7;
    padding: 20px 30px;
    text-align: center;
    color: #666;
    font-size: 0.9em;
}

footer a {
    color: #667eea;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Network Statistics Table */
.stats-table-container {
    overflow-x: auto;
    margin: 15px 0;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    font-size: 0.9em;
}

.stats-table thead {
    background: #9d7d5c;
    color: white;
}

.stats-table th {
    padding: 0.3em;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.stats-table td {
    padding: 0.3em;
    border-bottom: 1px solid #e2e8f0;
    color: #555;
}

.stats-table tbody tr:last-child td {
    border-bottom: none;
}

.stats-table tbody tr:hover {
    background: #f7fafc;
}

.stats-table .city-name {
    font-weight: 600;
    color: #9d7d5c;
}

.stats-table .location {
    color: #718096;
    font-size: 0.95em;
}

.stats-table .avg-latency,
.stats-table .median-latency,
.stats-table .p95-latency,
.stats-table .p99-latency {
    font-family: 'Courier New', monospace;
    color: #2d3748;
}

.stats-table .last-updated {
    color: #a0aec0;
    font-size: 0.9em;
}

.stats-note {
    font-size: 0.85em;
    color: #718096;
    margin-top: 10px;
    font-style: italic;
}

@media (max-width: 600px) {
    body {
        padding: 0;
    }

    .container {
        border-radius: 0;
    }

    header {
        display: flex;
    }

    header h1 {
        font-size: 2em;
        line-height: 1.1;
    }

    .subtitle {
        font-size: 1em;
    }

    main {
        padding: 0.3em;
    }

    .info-card {
        padding: 0.3em;
    }

    .stats-table {
        font-size: 0.75em;
    }

    .stats-table th,
    .stats-table td {
        padding: 8px 5px;
    }
}
