* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
}

.header {
    background: white;
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.header h1 {
    font-size: 1.5rem;
    color: #333;
}

.user-menu {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-small {
    padding: 6px 12px;
    background: #4caf50;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
}

.filter-bar {
    background: white;
    padding: 10px 20px;
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
}

.filter-btn {
    padding: 8px 16px;
    border: none;
    background: #f0f0f0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.filter-btn.active {
    background: #4caf50;
    color: white;
}

.main-container {
    display: flex;
    height: calc(100vh - 110px);
}

#map {
    flex: 2;
    height: 100%;
}

#sidebar {
    flex: 1;
    background: white;
    border-left: 1px solid #eee;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.refresh-btn {
    padding: 6px 12px;
    background: #2196f3;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#location-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.location-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.location-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.card-header h4 {
    font-size: 1rem;
    color: #333;
}

.badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.badge-product {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-service {
    background: #f3e5f5;
    color: #7b1fa2;
}

.card-address, .card-distance {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.card-status {
    margin: 10px 0;
}

.status-item {
    font-size: 13px;
    margin-bottom: 3px;
}

.card-update {
    font-size: 11px;
    color: #999;
    margin-top: 8px;
}

.stale-warning {
    color: #f44336;
    margin-left: 5px;
}

.report-btn {
    margin-top: 8px;
    padding: 4px 8px;
    background: #ff9800;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
}

.loading, .empty, .error {
    text-align: center;
    padding: 40px;
    color: #999;
}

.popup-content {
    font-size: 13px;
    line-height: 1.5;
}





.status-open { background: #e8f5e9; color: #2e7d32; }
.status-warning { background: #fff3e0; color: #ed6c02; }
.status-closed { background: #ffebee; color: #d32f2f; }
.status-neutral { background: #f5f5f5; color: #757575; }




@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    #map {
        height: 50vh;
    }
    
    #sidebar {
        height: 50vh;
    }
    
    .header h1 {
        font-size: 1.2rem;
    }
}