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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a2e;
    color: #eee;
    height: 100vh;
    overflow: hidden;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header {
    background: #16213e;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #e94560;
}

.header-left {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

header h1 {
    font-size: 1.2rem;
    color: #e94560;
}

.subtitle {
    font-size: 0.8rem;
    color: #888;
}

.status {
    font-size: 0.8rem;
    padding: 4px 14px;
    border-radius: 12px;
    background: #0f3460;
    color: #ccc;
}

.status.active {
    background: #00b800;
    color: #000;
    font-weight: 600;
}

.container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

#map {
    flex: 1;
    z-index: 1;
}

.panel {
    width: 340px;
    background: #16213e;
    overflow-y: auto;
    border-left: 2px solid #0f3460;
    padding: 14px;
}

.panel-section {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #0f3460;
}

.panel-section:last-child {
    border-bottom: none;
}

.panel-section h2 {
    font-size: 0.85rem;
    color: #e94560;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.station-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a1a2e;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #0f3460;
}

.station-badge {
    background: #e94560;
    color: #fff;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 6px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.station-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}

.station-addr {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 2px;
}

input[type="text"] {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #0f3460;
    border-radius: 6px;
    background: #1a1a2e;
    color: #eee;
    font-size: 0.85rem;
}

input[type="text"]:focus {
    outline: none;
    border-color: #e94560;
}

button {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    border: none;
    border-radius: 6px;
    background: #e94560;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #c73e54;
}

.stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.82rem;
}

.stat-label {
    color: #888;
}

.stat-value {
    font-weight: 600;
    color: #fff;
}

.traffic-bar {
    width: 100%;
    height: 10px;
    background: #1a1a2e;
    border-radius: 5px;
    margin-top: 8px;
    overflow: hidden;
}

.traffic-fill {
    height: 100%;
    width: 0%;
    border-radius: 5px;
    transition: width 0.6s ease, background 0.6s ease;
    background: #00b800;
}

.queue-section {
    background: #1a1a2e;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #0f3460;
}

.queue-info {
    font-size: 0.85rem;
}

.queue-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.queue-icon {
    font-size: 1.4rem;
}

.queue-count {
    font-size: 1.1rem;
    font-weight: 700;
}

.queue-detail {
    font-size: 0.78rem;
    color: #aaa;
    margin-top: 3px;
}

.prices-section {
    background: #1a1a2e;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #0f3460;
}

.price-date {
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 10px;
}

.price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.price-item {
    background: #16213e;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #0f3460;
}

.price-name {
    font-size: 0.75rem;
    color: #aaa;
    margin-bottom: 4px;
    font-weight: 600;
}

.price-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #00b800;
}

.price-unit {
    font-size: 0.65rem;
    color: #555;
    margin-top: 8px;
    text-align: right;
}

.station-list {
    max-height: 260px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.station-list::-webkit-scrollbar {
    width: 5px;
}

.station-list::-webkit-scrollbar-track {
    background: #1a1a2e;
}

.station-list::-webkit-scrollbar-thumb {
    background: #0f3460;
    border-radius: 3px;
}

.bus-section {
    background: #1a1a2e;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #0f3460;
}

.btn-bus {
    background: #0f3460;
    margin-bottom: 10px;
}

.btn-bus:hover {
    background: #16213e;
    border: 1px solid #0f3460;
}

.bus-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bus-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #aaa;
    padding: 3px 0;
}

.bus-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 20px;
    padding: 0 4px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    gap: 2px;
}

.bus-type {
    font-size: 0.65rem;
}

.trolleybus-type {
    font-size: 0.65rem;
}

.bus-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 20px;
    padding: 0 4px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    white-space: nowrap;
}

.station-item {
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    border: 1px solid transparent;
}

.station-item:hover {
    background: #1a1a2e;
    border-color: #0f3460;
}

.station-item.active {
    background: #0f3460;
    border-color: #e94560;
}

.station-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #eee;
}

.station-item-addr {
    font-size: 0.75rem;
    color: #888;
    margin-top: 2px;
}

.legend {
    font-size: 0.78rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    color: #ccc;
}

.legend-item .color {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}

.btn-secondary {
    background: #0f3460;
    margin-top: 6px;
}

.btn-secondary:hover {
    background: #1a1a2e;
}

.route-info {
    margin-top: 10px;
    font-size: 0.8rem;
    line-height: 1.5;
}

.route-detail {
    margin-bottom: 4px;
    color: #ccc;
}

.route-detail b {
    color: #eee;
}

.route-hint {
    font-size: 0.7rem;
    color: #666;
    margin-top: 6px;
}

.route-hint-click {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 6px;
    padding: 6px 8px;
    background: #16213e;
    border-radius: 4px;
    border-left: 3px solid #e94560;
}

.dg-control-zoom {
    border: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
}

.dg-control-zoom a {
    background: #16213e !important;
    color: #e94560 !important;
    border-color: #0f3460 !important;
}

.dg-control-zoom a:hover {
    background: #0f3460 !important;
}
