/* pixel-schedule — base styles (M2) */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    color: #222;
    background: #f5f5f5;
}

#app {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Map */
#map {
    flex: 1;
    height: 100%;
}

/* Side panel */
#panel {
    width: 340px;
    height: 100%;
    overflow-y: auto;
    background: #fff;
    border-left: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.panel-section {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.panel-section h3 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 8px;
}

/* Link list */
.link-list {
    list-style: none;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.link-item:last-child {
    border-bottom: none;
}

.link-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.link-dot.dir-a { background: #1e6fba; }
.link-dot.dir-b { background: #e07b00; }
.link-dot.neighbor { background: #999; }

.link-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-miles {
    font-size: 12px;
    color: #888;
}

/* Status bar */
#status-bar {
    padding: 6px 16px;
    font-size: 12px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
}

.status-dot.ok { background: #2ecc71; }
.status-dot.error { background: #e74c3c; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.btn-primary {
    background: #1e6fba;
    color: #fff;
}

.btn-primary:hover { background: #185fa0; }

.btn-secondary {
    background: #eee;
    color: #333;
}

.btn-secondary:hover { background: #ddd; }
