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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #f5f5f5;
}

.header {
    background-color: #1976d2;
    color: white;
    padding: 0.25rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 1.2rem;
    font-weight: 500;
}

.container {
    display: flex;
    height: calc(100vh - 60px);
}

#map {
    flex: 1;
    height: 100%;
}

.sidebar {
    width: 260px;
    background-color: white;
    box-shadow: -2px 0 4px rgba(0,0,0,0.1);
    overflow-y: auto;
    padding: 1rem;
}

.device-list {
    list-style: none;
}

.device-item {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.device-item:hover {
    background-color: #f5f5f5;
}

.device-item.active {
    background-color: #e3f2fd;
}

.device-id {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.device-time {
    font-size: 0.70rem;
    color: #666;
}

.device-coords {
    font-size: 0.80rem;
    color: #999;
    margin-top: 0.25rem;
}

.status {
    padding: 0.5rem 1rem;
    background-color: #e8f5e9;
    border-bottom: 1px solid #c8e6c9;
    font-size: 0.875rem;
    color: #2e7d32;
}

.status.error {
    background-color: #ffebee;
    border-color: #ffcdd2;
    color: #c62828;
}

.info-window {
    padding: 0.25rem;
}

.info-window h3 {
    margin-bottom: 0.25rem;
    color: #333;
}

.info-window p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
    color: #666;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .header h1 {
        font-size: 1.2rem;
    }
    
    .sidebar {
        width: 100%;
        height: 20%;
        box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    }
    
    #map {
        height: 80%;
    }
} 