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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.navbar {
    background: #1a1a2e;
    color: #fff;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    color: #4ecdc4;
    text-decoration: none;
    font-size: 1.4em;
    font-weight: bold;
}

.nav-subtitle {
    color: #888;
    font-size: 0.8em;
    margin-left: 10px;
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.95em;
}

.nav-links a:hover {
    color: #4ecdc4;
}

.container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

h1 {
    margin-bottom: 20px;
    color: #1a1a2e;
}

h2 {
    margin: 30px 0 15px;
    color: #1a1a2e;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #1a1a2e;
}

.stat-label {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
}

/* Weather Bar */
.weather-bar {
    background: #fff;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.weather-bar h3 {
    color: #1a1a2e;
    margin-right: 10px;
}

.weather-bar span {
    background: #e8f4f8;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Charts */
.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.chart-container {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chart-container h3 {
    margin-bottom: 10px;
    color: #1a1a2e;
}

.chart-container img {
    width: 100%;
    height: auto;
}

/* Node Table */
.node-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.node-table thead {
    background: #1a1a2e;
    color: #fff;
}

.node-table th, .node-table td {
    padding: 10px 14px;
    text-align: left;
}

.node-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.node-table tbody tr:hover {
    background: #e8f4f8;
}

.node-table a {
    color: #0066cc;
    text-decoration: none;
}

.node-table a:hover {
    text-decoration: underline;
}

.mono {
    font-family: "Courier New", monospace;
    font-size: 0.9em;
}

/* Node Detail */
.node-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.info-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-card h3 {
    color: #1a1a2e;
    margin-bottom: 10px;
    border-bottom: 2px solid #4ecdc4;
    padding-bottom: 5px;
}

.info-table {
    width: 100%;
}

.info-table td {
    padding: 4px 0;
}

.info-table td:first-child {
    font-weight: bold;
    color: #666;
    width: 40%;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 0.85em;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 10px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .charts-row {
        grid-template-columns: 1fr;
    }
}
