/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
}

/* App Container */
.app-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    height: calc(100vh - 80px);
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 380px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar.hidden {
    transform: translateX(-100%);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* FIXED: buses-list class */
.buses-list {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.bus-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bus-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.bus-id {
    font-weight: 700;
    color: #667eea;
}

.bus-route {
    color: #10b981;
}

/* FIXED: close button */
.close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Map */
.map-container {
    flex: 1;
    position: relative;
}

/* FIXED: map height */
#map {
    height: 100vh;
    width: 100%;
}

/* Buttons */
.locate-btn,
.sidebar-toggle {
    position: absolute;
    top: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: white;
}

.locate-btn {
    right: 20px;
}

.sidebar-toggle {
    left: 20px;
}

/* Status */
.status-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        height: 100vh;
        width: 85vw;
    }
}